Test date with UTC instead of local timezone.

iso_format test uses local timezone so it can fail at certain times
of the day depending on which timezone the tests are run in.

Fixes bug 1139131

Change-Id: I8fe423d96c438b46a9307fe1ecf648707183ff1c
This commit is contained in:
Brian Lamar 2013-03-01 22:51:35 -05:00
parent 4028e74ef4
commit 6a7ae170e2
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class TestBinGlanceCacheManage(functional.FunctionalTest):
exitcode, out, err = execute(cmd)
return datetime.date.today().isoformat() in out
return datetime.datetime.utcnow().strftime("%Y-%m-%d") in out
def test_no_cache_enabled(self):
"""