def test_reserve_executes_with_valid_params(self, args, m_reserve): result = calico_mesos.reserve(args) self.assertTrue(m_reserve.called) self.assertEqual(result, m_reserve())
def test_error_messages_with_invalid_params(self, args, error, m_reserve): with self.assertRaises(IsolatorException) as e: calico_mesos.reserve(args) self.assertFalse(m_reserve.called) self.assertEqual(e.exception.message, error)