def test_to_dict_null(self): f = Field('test') f.value = 'foo' assert_equals(f.to_dict(), {'test': 'foo'})
def test_to_dict_null(self): f = Field('test') assert_equals(f.to_dict(), {'test': None})