예제 #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')
예제 #2
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'
예제 #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')
예제 #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'