Small simplification from the removal of raw_list
@@ -1271,14 +1271,12 @@ def test_roundtrip_from_raw_string_to_initial():
)
assert not form.get_errors(), 'input: %s' % raw
f = form.fields.foo
- if f.is_list:
assert f.raw_data == raw
assert f.value == initial
+ if f.is_list:
if initial:
assert [type(x) for x in f.value] == [type(x) for x in initial]
else:
- assert f.raw_data == raw
- assert f.value == initial
assert type(f.value) == type(initial)
def test_normalizing():
