Esempio n. 1
0
 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())
Esempio n. 2
0
 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())
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)