ensure lastfm test cases fail when output is bad

master
mutantmonkey 2012-10-09 00:57:42 -04:00
parent 7ea5006cd8
commit 4b97b54215
1 changed files with 2 additions and 2 deletions

View File

@ -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):