Fixed the lastfm tests.

master
Telnoratti 2014-04-26 00:27:34 -04:00
parent b73a048541
commit eac8d189fc
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class TestLastfm(unittest.TestCase):
out = self.phenny.say.call_args[0][0] out = self.phenny.say.call_args[0][0]
m = re.match("^{0}'s and {1}'s musical compatibility rating is .*"\ m = re.match("^{0}'s and {1}'s musical compatibility rating is .*"\
" and music they have in common includes: .*$". " they don't have any artists in common.$".
format(self.user1, self.user2), out, flags=re.UNICODE) format(self.user1, self.user2), out, flags=re.UNICODE)
self.assertTrue(m) self.assertTrue(m)
@ -62,6 +62,6 @@ class TestLastfm(unittest.TestCase):
out = self.phenny.say.call_args[0][0] out = self.phenny.say.call_args[0][0]
m = re.match("^{0}'s and {1}'s musical compatibility rating is .*"\ m = re.match("^{0}'s and {1}'s musical compatibility rating is .*"\
" and music they have in common includes: .*$". " they don't have any artists in common.$".
format(self.user1, self.user2), out, flags=re.UNICODE) format(self.user1, self.user2), out, flags=re.UNICODE)
self.assertTrue(m) self.assertTrue(m)