From 77e678d6d372ca00f30ca51a48c0add86f420e1e Mon Sep 17 00:00:00 2001 From: barnum Date: Thu, 24 Oct 2019 15:12:38 +0100 Subject: [PATCH] Failing test --- test/test_clock.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_clock.py b/test/test_clock.py index 2c6ac3d..df3a50f 100644 --- a/test/test_clock.py +++ b/test/test_clock.py @@ -9,6 +9,10 @@ class MyTestCase(unittest.TestCase): def test_the_time(self, mock): self.assertEqual(clock.whats_the_time(), 1571871846.8861961) + @patch('time.time', return_value=1571871846.8861921) + def test_the_time(self, mock): + self.assertEqual(clock.whats_the_time(), 1571871846.8861961) + if __name__ == '__main__': unittest.main()