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