Permalink
Browse files

Expand default time delta (bug 1089988)

Change-Id: I3d08092bf5248f75b238591586443a4daea02a20
  • Loading branch information...
1 parent 4e2be8a commit f74aab2463ccc9549c07175ed82015f23ad2694c @dolph dolph committed Dec 13, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 keystone/test.py
View
@@ -284,6 +284,9 @@ def add_path(self, path):
sys.path.insert(0, path)
self._paths.append(path)
- def assertCloseEnoughForGovernmentWork(self, a, b):
- """Asserts that two datetimes are nearly equal within a small delta."""
- self.assertAlmostEqual(a, b, delta=datetime.timedelta(seconds=1))
+ def assertCloseEnoughForGovernmentWork(self, a, b, delta=3):
+ """Asserts that two datetimes are nearly equal within a small delta.
+
+ :param delta: Maximum allowable time delta, defined in seconds.
+ """
+ self.assertAlmostEqual(a, b, delta=datetime.timedelta(seconds=delta))

0 comments on commit f74aab2

Please sign in to comment.