Changeset 407 for inundation/ga/storm_surge/pmesh/meshHarness.py
- Timestamp:
- Oct 15, 2004, 12:14:48 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pmesh/meshHarness.py
r406 r407 840 840 841 841 842 def test_ removeDuplicatedVertices(self):842 def test_ungenerateFileLoading(self): 843 843 844 844 fileName = tempfile.mktemp(".txt") … … 873 873 m = Mesh(userVertices=[a,b,c,d], userSegments=[s1,s2,s3,s4]) 874 874 dict = importUngenerateFile(fileName) 875 876 tag = "DSG" 877 Segment.set_default_tag(tag) 875 878 m.addVertsSegs(dict) 879 880 # have to reset this , since it's a class attribute 881 Segment.set_default_tag("") 876 882 877 883 self.failUnless(len(m.userSegments) ==11, 878 ' Segments not deleted.')884 'Wrong segment list length.') 879 885 self.failUnless(len(m.userVertices) == 11, 880 ' Vertex deleted, instead of segment.')886 'Wrong vertex list length.') 881 887 self.failUnless(m.userSegments[10].vertices[0] == m.userVertices[10], 882 ' Vertex deleted, instead ofsegment.')888 'bad vertex on segment.') 883 889 self.failUnless(m.userSegments[10].vertices[1] == m.userVertices[8], 884 'Vertex deleted, instead of segment.') 890 'Bad segment.') 891 self.failUnless(m.userSegments[10].marker == tag, 892 'wrong tag.') 885 893 886 894 #-------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.