コード例 #1
0
 def test_to_dict_null(self):
     f = Field('test')
     f.value = 'foo'
     assert_equals(f.to_dict(), {'test': 'foo'})
コード例 #2
0
 def test_init_as_null(self):
     f = Field('test')
     assert_is_none(f.value)
コード例 #3
0
 def test_to_dict_null(self):
     f = Field('test')
     assert_equals(f.to_dict(), {'test': None})
コード例 #4
0
 def test_set_value(self):
     f = Field('test')
     f.set_value('foo')
     assert_equals(f.value, 'foo')
コード例 #5
0
ファイル: test_fields.py プロジェクト: jsok/unleashed
 def test_to_dict_null(self):
     f = Field('test')
     f.value = 'foo'
     assert_equals(f.to_dict(), {'test': 'foo'})
コード例 #6
0
ファイル: test_fields.py プロジェクト: jsok/unleashed
 def test_to_dict_null(self):
     f = Field('test')
     assert_equals(f.to_dict(), {'test': None})
コード例 #7
0
ファイル: test_fields.py プロジェクト: jsok/unleashed
 def test_set_value(self):
     f = Field('test')
     f.set_value('foo')
     assert_equals(f.value, 'foo')