From 7559887e0fe66831b4b0c3c8b71137df64bac06d Mon Sep 17 00:00:00 2001 From: "Stephen M. McQuay" Date: Fri, 8 Jun 2012 11:47:19 -0600 Subject: [PATCH] update tests to unittest2 (or unittest py2.7) --- surf/test/__init__.py | 6 +++--- surf/test/subd/__init__.py | 2 +- surf/test/subd/{cc.py => test_cc.py} | 0 surf/test/test00.py | 24 --------------------- surf/test/{edge.py => test_edge.py} | 0 surf/test/{polymesh.py => test_polymesh.py} | 0 surf/test/{vertex.py => test_vertex.py} | 0 7 files changed, 4 insertions(+), 28 deletions(-) rename surf/test/subd/{cc.py => test_cc.py} (100%) delete mode 100644 surf/test/test00.py rename surf/test/{edge.py => test_edge.py} (100%) rename surf/test/{polymesh.py => test_polymesh.py} (100%) rename surf/test/{vertex.py => test_vertex.py} (100%) diff --git a/surf/test/__init__.py b/surf/test/__init__.py index 7515f7a..c084683 100644 --- a/surf/test/__init__.py +++ b/surf/test/__init__.py @@ -1,6 +1,6 @@ -from .vertex import TestVertex -from .edge import TestEdge -from .polymesh import TestPM +from .test_vertex import TestVertex +from .test_edge import TestEdge +from .test_polymesh import TestPM from .subd.cc import TestCC diff --git a/surf/test/subd/__init__.py b/surf/test/subd/__init__.py index 574f764..7223352 100644 --- a/surf/test/subd/__init__.py +++ b/surf/test/subd/__init__.py @@ -1,4 +1,4 @@ -from .cc import TestCC +from .test_cc import TestCC __all__ = [ TestCC.__name__, diff --git a/surf/test/subd/cc.py b/surf/test/subd/test_cc.py similarity index 100% rename from surf/test/subd/cc.py rename to surf/test/subd/test_cc.py diff --git a/surf/test/test00.py b/surf/test/test00.py deleted file mode 100644 index 04fdc2b..0000000 --- a/surf/test/test00.py +++ /dev/null @@ -1,24 +0,0 @@ -from surf.util import cube -from surf.subd import cc - -polygon = cube() -print(polygon) - -refined_poly = cc.refine(polygon) -print(refined_poly) -# -# -# import pylab -# import mpl_toolkits.mplot3d.axes3d as p3 -# -# fig = pylab.figure() -# ax = p3.Axes3D(fig) -# for edge in newPolygon.edges: -# xs = [vertex.x for vertex in edge.vertices] -# ys = [vertex.y for vertex in edge.vertices] -# zs = [vertex.z for vertex in edge.vertices] -# ax.plot_wireframe(xs, ys, zs) -# ax.set_xlabel('X') -# ax.set_ylabel('Y') -# ax.set_zlabel('Z') -# pylab.show() diff --git a/surf/test/edge.py b/surf/test/test_edge.py similarity index 100% rename from surf/test/edge.py rename to surf/test/test_edge.py diff --git a/surf/test/polymesh.py b/surf/test/test_polymesh.py similarity index 100% rename from surf/test/polymesh.py rename to surf/test/test_polymesh.py diff --git a/surf/test/vertex.py b/surf/test/test_vertex.py similarity index 100% rename from surf/test/vertex.py rename to surf/test/test_vertex.py