Esempio n. 1
0
 def assertion(data, _):
     value = hydrate_point(*data[0][0])
     self.assertIsInstance(value, CartesianPoint)
     self.assertEqual(value.x, 3.0)
     self.assertEqual(value.y, 4.0)
     with self.assertRaises(AttributeError):
         _ = value.z
Esempio n. 2
0
 def assertion(data, _):
     value = hydrate_point(*data[0][0])
     assert isinstance(value, CartesianPoint)
     assert value.x == 3.0
     assert value.y == 4.0
     with raises(AttributeError):
         _ = value.z
Esempio n. 3
0
 def assertion(data, _):
     value = hydrate_point(*data[0][0])
     self.assertIsInstance(value, WGS84Point)
     self.assertEqual(value.latitude, 3.0)
     self.assertEqual(value.y, 3.0)
     self.assertEqual(value.longitude, 4.0)
     self.assertEqual(value.x, 4.0)
     self.assertEqual(value.height, 5.0)
     self.assertEqual(value.z, 5.0)
Esempio n. 4
0
 def assertion(data, _):
     value = hydrate_point(*data[0][0])
     assert isinstance(value, WGS84Point)
     assert value.latitude == 3.0
     assert value.y == 3.0
     assert value.longitude == 4.0
     assert value.x == 4.0
     assert value.height == 5.0
     assert value.z == 5.0
Esempio n. 5
0
 def assertion(data, _):
     value = hydrate_point(*data[0][0])
     self.assertIsInstance(value, WGS84Point)
     self.assertEqual(value.latitude, 3.0)
     self.assertEqual(value.y, 3.0)
     self.assertEqual(value.longitude, 4.0)
     self.assertEqual(value.x, 4.0)
     with self.assertRaises(AttributeError):
         _ = value.height
     with self.assertRaises(AttributeError):
         _ = value.z
Esempio n. 6
0
 def assertion(data, _):
     value = hydrate_point(*data[0][0])
     assert isinstance(value, WGS84Point)
     assert value.latitude == 3.0
     assert value.y == 3.0
     assert value.longitude == 4.0
     assert value.x == 4.0
     with raises(AttributeError):
         _ = value.height
     with raises(AttributeError):
         _ = value.z
Esempio n. 7
0
 def assertion(data, _):
     value = hydrate_point(*data[0][0])
     self.assertIsInstance(value, CartesianPoint)
     self.assertEqual(value.x, 3.0)
     self.assertEqual(value.y, 4.0)
     self.assertEqual(value.z, 5.0)
Esempio n. 8
0
 def assertion(data, _):
     value = hydrate_point(*data[0][0])
     assert isinstance(value, CartesianPoint)
     assert value.x == 3.0
     assert value.y == 4.0
     assert value.z == 5.0