Exemple #1
0
 def test_number_serialize(self):
     """
     NumberAttribute.serialize
     """
     attr = NumberAttribute()
     self.assertEqual(attr.serialize(3.141), '3.141')
     self.assertEqual(attr.serialize(1), '1')
 def test_number_serialize(self):
     """
     NumberAttribute.serialize
     """
     attr = NumberAttribute()
     assert attr.serialize(3.141) == '3.141'
     assert attr.serialize(1) == '1'
     assert attr.serialize(12345678909876543211234234324234) == '12345678909876543211234234324234'
Exemple #3
0
 def test_number_serialize(self):
     """
     NumberAttribute.serialize
     """
     attr = NumberAttribute()
     self.assertEqual(attr.serialize(3.141), '3.141')
     self.assertEqual(attr.serialize(1), '1')
     self.assertEqual(attr.serialize(12345678909876543211234234324234), '12345678909876543211234234324234')
Exemple #4
0
 def test_number_serialize(self):
     """
     NumberAttribute.serialize
     """
     attr = NumberAttribute()
     assert attr.serialize(3.141) == '3.141'
     assert attr.serialize(1) == '1'
     assert attr.serialize(12345678909876543211234234324234) == '12345678909876543211234234324234'