示例#1
0
 def test_field_dump_decorator(self):
     test_field = Field('test_field')
     dump_function = str
     test_field = test_field.dump(dump_function)
     assert test_field.to_str == dump_function
示例#2
0
 def test_field_dump_decorator(self):
     test_field = Field('test_field')
     dump_function = str
     test_field = test_field.dump(dump_function)
     assert test_field.to_str == dump_function
示例#3
0
 def test_field_load_decorator(self):
     test_field = Field('test_field')
     load_function = int
     test_field = test_field.dump(load_function)
     assert test_field.to_str == load_function
示例#4
0
 def test_field_load_decorator(self):
     test_field = Field('test_field')
     load_function = int
     test_field = test_field.dump(load_function)
     assert test_field.to_str == load_function