Exemple #1
0
 def test_to_dict_null(self):
     f = Field('test')
     f.value = 'foo'
     assert_equals(f.to_dict(), {'test': 'foo'})
Exemple #2
0
 def test_init_as_null(self):
     f = Field('test')
     assert_is_none(f.value)
Exemple #3
0
 def test_to_dict_null(self):
     f = Field('test')
     assert_equals(f.to_dict(), {'test': None})
Exemple #4
0
 def test_set_value(self):
     f = Field('test')
     f.set_value('foo')
     assert_equals(f.value, 'foo')
Exemple #5
0
 def test_to_dict_null(self):
     f = Field('test')
     f.value = 'foo'
     assert_equals(f.to_dict(), {'test': 'foo'})
Exemple #6
0
 def test_to_dict_null(self):
     f = Field('test')
     assert_equals(f.to_dict(), {'test': None})
Exemple #7
0
 def test_set_value(self):
     f = Field('test')
     f.set_value('foo')
     assert_equals(f.value, 'foo')