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