Exemple #1
0
 def test_execute_triangle_using_relative_poly_input(self):
     f_node, f_ele, f_neigh, f_edge = from_poly.convert("data/simple/box.poly")
     assert f_node == self.files["node"]
     assert f_ele == self.files["ele"]
     assert f_neigh == self.files["neigh"]
     assert f_edge == self.files["edge"]
     assert os.path.isfile(self.files["poly"])
     assert os.path.isfile(self.files["ele"])
     assert os.path.isfile(self.files["neigh"])
     assert os.path.isfile(self.files["node"])
     assert os.path.isfile(self.files["edge"])
Exemple #2
0
 def test_execute_triangle_convert_poly(self):
     f_node, f_ele, f_neigh, f_edge = from_poly.convert(self.files["poly_input"])
     assert f_node == self.files["node"]
     assert f_ele == self.files["ele"]
     assert f_neigh == self.files["neigh"]
     assert f_edge == self.files["edge"]
     assert os.path.isfile(self.files["poly"])
     assert os.path.isfile(self.files["ele"])
     assert os.path.isfile(self.files["neigh"])
     assert os.path.isfile(self.files["node"])
     assert os.path.isfile(self.files["edge"])