~pyuppaal-developers/pyuppaal/trunk

« back to all changes in this revision

Viewing changes to tests/test_import.py

  • Committer: Kenneth Yrke Jørgensen
  • Date: 2011-05-10 13:11:42 UTC
  • mfrom: (91.1.4 pyuppaal)
  • Revision ID: mail@yrke.dk-20110510131142-depbgff443o1gui0
Merged lp:~boegholm/pyuppaal/780495-fix for bugfix of bug #780495

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
        self.assertEqual(nta.templates[0].locations[0].xpos, 0)
85
85
        self.assertEqual(nta.templates[0].locations[0].ypos, 0)
86
86
 
 
87
    def test_import_urgent(self):
 
88
        file = open(os.path.join(os.path.dirname(sys.argv[0]), 'urgent.xml'))
 
89
        nta = pyuppaal.from_xml(file)
 
90
        self.assertEqual(nta.templates[0].locations[0].urgent, True)
 
91
 
87
92
    def test_import_nocoords(self):
88
93
        file = open(os.path.join(os.path.dirname(sys.argv[0]), 'small_nocoords.xml'))
89
94
        nta = pyuppaal.from_xml(file)