def test_normal(self, attr_names, value, expected): assert RecordConvertor.to_records(attr_names, value) == expected
def test_exception_value(self, attr_names, value): with pytest.raises(OverflowError): RecordConvertor.to_records(attr_names, value)
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)
def test_normal(self, attr_names, value, expeted): assert RecordConvertor.to_records(attr_names, value) == expeted