Ignore:
Timestamp:
Oct 15, 2004, 12:14:48 PM (20 years ago)
Author:
duncan
Message:

removed default region tag bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pmesh/meshHarness.py

    r406 r407  
    840840
    841841
    842     def test_removeDuplicatedVertices(self):
     842    def test_ungenerateFileLoading(self):
    843843       
    844844        fileName = tempfile.mktemp(".txt")
     
    873873        m = Mesh(userVertices=[a,b,c,d], userSegments=[s1,s2,s3,s4])
    874874        dict = importUngenerateFile(fileName)
     875
     876        tag = "DSG"
     877        Segment.set_default_tag(tag)
    875878        m.addVertsSegs(dict)
     879
     880        # have to reset this , since it's a class attribute
     881        Segment.set_default_tag("")
    876882           
    877883        self.failUnless(len(m.userSegments) ==11,
    878                         'Segments not deleted.')
     884                        'Wrong segment list length.')
    879885        self.failUnless(len(m.userVertices) == 11,
    880                         'Vertex deleted, instead of segment.')
     886                        'Wrong vertex list length.')
    881887        self.failUnless(m.userSegments[10].vertices[0] == m.userVertices[10],
    882                         'Vertex deleted, instead of segment.')
     888                        'bad vertex on segment.')
    883889        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.')
    885893       
    886894#-------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.