Exemplo n.º 1
0
 def test_cleanup(self, m_cleanup):
     args = {"hostname": "metaman", "container_id": "abcdef-12345"}
     calico_mesos.cleanup(args)
     m_cleanup.assert_called_with(args["hostname"], args["container_id"])
Exemplo n.º 2
0
 def test_cleanup(self, m_cleanup):
     args = {"hostname": "metaman", "container_id": "abcdef-12345"}
     calico_mesos.cleanup(args)
     m_cleanup.assert_called_with(args["hostname"], args["container_id"])
Exemplo n.º 3
0
 def test_error_messages_with_invalid_params(self, args, error, m_cleanup):
     with self.assertRaises(IsolatorException) as e:
         calico_mesos.cleanup(args)
     self.assertEqual(e.exception.message, error)
Exemplo n.º 4
0
 def test_error_messages_with_invalid_params(self, args, error, m_cleanup):
     with self.assertRaises(IsolatorException) as e:
         calico_mesos.cleanup(args)
     self.assertEqual(e.exception.message, error)