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