swift/test/functional
Samuel Merritt 117b61976f functests: use assertIn and assertNotIn
We have a bunch of assertions like

    self.assertTrue(resp.status in (200, 204))

Sometimes we get smart about failure messages and have something like

    self.assertTrue(resp.status in (200, 204), resp.status)

so we can see what the status was when it failed.

Since we don't have to support Python 2.6 any more, we can use
assertIn/assertNotIn and get nice failure messages for free.

Change-Id: I2d46c9969d41207a89e01017b4c2bc533c3d744f
2015-07-28 12:23:14 +01:00
..
__init__.py Use six to fix imports on Python 3 2015-07-24 11:48:28 +02:00
swift_test_client.py Use six to fix imports on Python 3 2015-07-24 11:48:28 +02:00
test_account.py functests: use assertIn and assertNotIn 2015-07-28 12:23:14 +01:00
test_container.py functests: use assertIn and assertNotIn 2015-07-28 12:23:14 +01:00
test_object.py functests: use assertIn and assertNotIn 2015-07-28 12:23:14 +01:00
tests.py functests: use assertIn and assertNotIn 2015-07-28 12:23:14 +01:00