magnum/magnum
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 Avoid JsonPatch twice 2015-11-02 11:30:31 +08:00
cmd Backend support for magnum service 2015-09-28 17:06:10 +00:00
common Refactor MagnumException to reduce complexity 2015-10-22 09:52:20 +01:00
conductor Merge "Improving comment in monitors.py" 2015-11-02 19:41:14 +00:00
db Add bay filter to container 2015-10-28 09:55:56 +08:00
hacking Use assertIn and assertNotIn 2015-11-02 22:35:04 +01:00
locale Fix missing value types for log message 2015-09-11 19:37:09 +08:00
objects Make Kubernetes API call secure 2015-10-08 16:41:38 +09:00
openstack Remove unused oslo-incubator modules 2015-07-22 23:46:12 +03:00
public/css Incorporate feedback from the Initial commit review 2014-11-18 14:25:08 +00:00
service Refactor periodic task sync_bay_status 2015-10-22 09:52:18 +01:00
servicegroup Adding API support for magnum service 2015-09-29 18:45:49 +00:00
templates Merge "Some improvement in swarm cluster add-proxy.sh" 2015-10-21 09:15:32 +00:00
tests Use assertIn and assertNotIn 2015-11-02 22:35:04 +01:00
MANIFEST.in Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
__init__.py Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
i18n.py Setup for translation 2015-05-24 03:13:55 +00:00
opts.py Merge "Add TLS support in heat kubernetes" 2015-10-08 13:56:29 +00:00
version.py Remove coding:utf-8 2015-08-03 23:28:22 +08:00