diff options
Diffstat (limited to 'python/mock-1.0.0/tests')
-rw-r--r-- | python/mock-1.0.0/tests/testhelpers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/mock-1.0.0/tests/testhelpers.py b/python/mock-1.0.0/tests/testhelpers.py index e788da844..f41023c37 100644 --- a/python/mock-1.0.0/tests/testhelpers.py +++ b/python/mock-1.0.0/tests/testhelpers.py @@ -41,21 +41,21 @@ class AnyTest(unittest2.TestCase): def test_any_and_datetime(self): mock = Mock() - mock(datetime.now(), foo=datetime.now()) + mock(datetime.utcnow(), foo=datetime.utcnow()) mock.assert_called_with(ANY, foo=ANY) def test_any_mock_calls_comparison_order(self): mock = Mock() - d = datetime.now() + d = datetime.utcnow() class Foo(object): def __eq__(self, other): return False def __ne__(self, other): return True - for d in datetime.now(), Foo(): + for d in datetime.utcnow(), Foo(): mock.reset_mock() mock(d, foo=d, bar=d) |