update test case for new .time

This commit is contained in:
mutantmonkey
2013-11-28 23:06:28 -08:00
parent 4fa63e7314
commit 26f37e83be

View File

@@ -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',