def test_predict_body_units_cm(self): mesh = Mesh() mesh.v = np.array([[150, 100, 50], [-150, 50, 150]]) self.assertEqual(mesh.predict_body_units(), 'cm')
def test_predict_body_units_m(self): mesh = Mesh() mesh.v = np.array([[1.5, 1.0, 0.5], [-1.5, 0.5, 1.5]]) self.assertEqual(mesh.predict_body_units(), 'm')