update test case for new .time
parent
4fa63e7314
commit
26f37e83be
|
@ -17,9 +17,7 @@ class TestClock(unittest.TestCase):
|
||||||
@patch('time.time')
|
@patch('time.time')
|
||||||
def test_time(self, mock_time):
|
def test_time(self, mock_time):
|
||||||
mock_time.return_value = 1338674651
|
mock_time.return_value = 1338674651
|
||||||
input = Mock(
|
input = Mock(group=lambda x: 'EDT')
|
||||||
match=Mock(group=lambda x: 'EDT'),
|
|
||||||
sender='#phenny', nick='phenny_test')
|
|
||||||
f_time(self.phenny, input)
|
f_time(self.phenny, input)
|
||||||
|
|
||||||
self.phenny.msg.called_once_with('#phenny',
|
self.phenny.msg.called_once_with('#phenny',
|
||||||
|
|
Loading…
Reference in New Issue