예제 #1
0
 def test_exit1(self):
     with self.assertRaises(SystemExit):
         chat.exitcheck(self, "exit")
예제 #2
0
 def test_no_exit1(self):
     chat.exitcheck(self, "beep boop")
예제 #3
0
 def test_no_exit2(self):
     chat.exitcheck(self, "this should not exit")
예제 #4
0
 def test_exit3(self):
     with self.assertRaises(SystemExit):
         chat.exitcheck(self, "EXIT")