From 9248b6721c2cd19e84515c8d1a57792b6985081b Mon Sep 17 00:00:00 2001 From: Calvin Winkowski Date: Fri, 25 Apr 2014 17:15:33 -0400 Subject: [PATCH] Fixed the tests. --- modules/test/test_tfw.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/test/test_tfw.py b/modules/test/test_tfw.py index ebea00b..18c7621 100644 --- a/modules/test/test_tfw.py +++ b/modules/test/test_tfw.py @@ -42,13 +42,22 @@ class TestTfw(unittest.TestCase): def test_mev(self): input = Mock(group=lambda x: '24060') - tfw.tfw(self.phenny, input) + tfw.tfweV(self.phenny, input) out = self.phenny.say.call_args[0][0] m = re.match('^[\-\d\.]+ meV‽ .* \- .* \- [A-Z]{4} \d{2}:\d{2}Z$', out, flags=re.UNICODE) self.assertTrue(m) + def test_meter(self): + input = Mock(group=lambda x: '24060') + tfw.tfw(self.phenny, input) + + out = self.phenny.say.call_args[0][0] + m = re.match('^[\-\d\.]+ Meters‽ .* \- .* \- [A-Z]{4} \d{2}:\d{2}Z$', out, + flags=re.UNICODE) + self.assertTrue(m) + def test_sexy_time(self): input = Mock(group=lambda x: 'KBCB') tfw.web = MagicMock()