def test_update_faces(self): """Test update_faces method """ num_mesh = NumerrinMesh('test_mesh', self.mesh, self.pool) with self.assertRaises(NotImplementedError): num_mesh.update(self.faces)
def test_update_edges(self): """Test update_edges method """ num_mesh = NumerrinMesh('test_mesh', self.mesh, self.pool) with self.assertRaises(NotImplementedError): num_mesh.update([Edge([self.puids, self.puids[3]])])
def test_update_points(self): """Test update_points method """ num_mesh = NumerrinMesh('test_mesh', self.mesh, self.pool) points = self.points points[0].data[CUBA.VELOCITY] = (2, 1, 3) num_mesh.update(points) point_f = num_mesh.get(points[0].uid) self.assertIsInstance(point_f.data, DataContainer) self.assertEqual(points[0].data, point_f.data)