magnum/magnum/tests/functional
Bertrand Lallau 798c7e35ef Use assertIn and assertNotIn
Tests should use:
  self.assertIn(value, list)
  self.assertNotIn(value, list)

instead of:
  self.assertTrue(value in list)
  self.assertFalse(value in list)

because assertIn and assertNotIn raise more meaningful errors:
  self.assertIn(3, [1, 2])
  >>> MismatchError: 3 not in [1, 2]

  self.assertTrue(3 in [1, 2])
  >>> AssertionError: False is not true

Closes-Bug: #1510007
Change-Id: If33252cc93c06a85e61871fb7b22b726f4a08500
2015-11-02 22:35:04 +01:00
..
api Fix argument order in assertEqual to (expect, obs) 2015-10-26 21:01:02 +01:00
common Refactor config setup to reduce complexity 2015-10-22 09:52:20 +01:00
__init__.py Functional tests with Tempest - BayModel CRUD 2015-09-21 16:27:07 -05:00
python_client_base.py Use assertIn and assertNotIn 2015-11-02 22:35:04 +01:00
test_k8s_python_client.py Use assertIsNotNone instead of assertEqual(** is not None) 2015-10-30 04:33:40 +00:00
test_magnum_python_client.py Use assertIsNotNone instead of assertEqual(** is not None) 2015-10-30 04:33:40 +00:00
test_templates.py Add template definition of Mesos bay 2015-07-15 10:56:13 -04:00