From 4b97b54215b21e837726eee63a8cdb21f795040a Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Tue, 9 Oct 2012 00:57:42 -0400 Subject: [PATCH] ensure lastfm test cases fail when output is bad --- modules/test/test_lastfm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/test/test_lastfm.py b/modules/test/test_lastfm.py index 568f5cf..52899e7 100644 --- a/modules/test/test_lastfm.py +++ b/modules/test/test_lastfm.py @@ -21,7 +21,7 @@ class TestLastfm(unittest.TestCase): now_playing(self.phenny, input) out = self.phenny.say.call_args[0][0] - m = re.match('^{0} .*$'.format(self.user1), out, flags=re.UNICODE) + m = re.match('^{0} listened to ".+" by .+ on .+ .*$'.format(self.user1), out, flags=re.UNICODE) self.assertTrue(m) def test_now_playing_sender(self): @@ -30,7 +30,7 @@ class TestLastfm(unittest.TestCase): now_playing(self.phenny, input) out = self.phenny.say.call_args[0][0] - m = re.match('^{0} .*$'.format(self.user1), out, flags=re.UNICODE) + m = re.match('^{0} listened to ".+" by .+ on .+ .*$'.format(self.user1), out, flags=re.UNICODE) self.assertTrue(m) def test_tasteometer(self):