Beispiel #1
0
 def test_exit_msg_negative(self):
     with self.assertRaises(SystemExit) as cm:
         curator.exit_msg(False)
     self.assertEqual(cm.exception.code, 1)
Beispiel #2
0
 def test_exit_msg_negative(self):
     with self.assertRaises(SystemExit) as cm:
         curator.exit_msg(False)
     self.assertEqual(cm.exception.code, 1)
Beispiel #3
0
 def test_exit_msg_positive(self):
     with self.assertRaises(SystemExit) as cm:
         curator.exit_msg(True)
     self.assertEqual(cm.exception.code, 0)
Beispiel #4
0
 def test_exit_msg_positive(self):
     with self.assertRaises(SystemExit) as cm:
         curator.exit_msg(True)
     self.assertEqual(cm.exception.code, 0)