Exemplo n.º 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')
Exemplo n.º 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'
Exemplo n.º 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')
Exemplo n.º 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'