Example #1
0
 def runTest(self):
     try:
         baddiveseg = SegmentDive(150, 10 * 60, self.airtank, 0)
         baddiveseg.check()
     except UnauthorizedMod:
         pass
     else:
         self.fail("should raise UnauthorizedMod")
Example #2
0
 def test_wrong_mod_1(self):
     """test wrong mod 1."""
     try:
         baddiveseg = SegmentDive(150, 10 * 60, self.airtank, 0)
         baddiveseg.check()
     except UnauthorizedMod:
         pass
     else:
         self.fail("should raise UnauthorizedMod")