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