def test_exit1(self): with self.assertRaises(SystemExit): chat.exitcheck(self, "exit")
def test_no_exit1(self): chat.exitcheck(self, "beep boop")
def test_no_exit2(self): chat.exitcheck(self, "this should not exit")
def test_exit3(self): with self.assertRaises(SystemExit): chat.exitcheck(self, "EXIT")