Fix failing tox -e py26 tests

assertNotIn was new in python 2.7

Change-Id: I8447065e1f95162843fc1b92689c4bfab8792b6e
This commit is contained in:
Alistair Coles 2015-02-24 17:14:41 +00:00
parent 6a6f7d5c9f
commit 0e709a1260

View File

@ -418,7 +418,7 @@ class TestContainerController(unittest.TestCase):
resp = req.get_response(self.controller)
# make sure we get bad response
self.assertEquals(resp.status_int, 400)
self.assertNotIn('X-Backend-Storage-Policy-Index', resp.headers)
self.assertFalse('X-Backend-Storage-Policy-Index' in resp.headers)
def test_PUT_no_policy_change(self):
ts = (Timestamp(t).internal for t in itertools.count(time.time()))