示例#1
0
 def test_normal(self, attr_names, value, expected):
     assert RecordConvertor.to_records(attr_names, value) == expected
示例#2
0
 def test_exception_value(self, attr_names, value):
     with pytest.raises(OverflowError):
         RecordConvertor.to_records(attr_names, value)
示例#3
0
 def test_exception(self, attr_names, value, expected):
     with pytest.raises(expected):
         RecordConvertor.to_record(attr_names, value)
 def test_normal(self, attr_list, value, expeted):
     assert RecordConvertor.to_record_list(attr_list, value) == expeted
 def test_exception(self, attr_list, value, expeted):
     with pytest.raises(expeted):
         RecordConvertor.to_record_list(attr_list, value)
示例#6
0
 def test_exception(self, attr_list, value, expeted):
     with pytest.raises(expeted):
         RecordConvertor.to_record_list(attr_list, value)
示例#7
0
 def test_normal(self, attr_list, value, expeted):
     assert RecordConvertor.to_record_list(attr_list, value) == expeted
示例#8
0
 def test_normal(self, attr_names, value, expeted):
     assert RecordConvertor.to_records(attr_names, value) == expeted