Example #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"])
Example #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"])
Example #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)
Example #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)