def runTest(self): try: baddiveseg = SegmentDive(150, 10 * 60, self.airtank, 0) baddiveseg.check() except UnauthorizedMod: pass else: self.fail("should raise UnauthorizedMod")
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")