ensure lastfm test cases fail when output is bad
parent
7ea5006cd8
commit
4b97b54215
|
@ -21,7 +21,7 @@ class TestLastfm(unittest.TestCase):
|
||||||
now_playing(self.phenny, input)
|
now_playing(self.phenny, input)
|
||||||
|
|
||||||
out = self.phenny.say.call_args[0][0]
|
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)
|
self.assertTrue(m)
|
||||||
|
|
||||||
def test_now_playing_sender(self):
|
def test_now_playing_sender(self):
|
||||||
|
@ -30,7 +30,7 @@ class TestLastfm(unittest.TestCase):
|
||||||
now_playing(self.phenny, input)
|
now_playing(self.phenny, input)
|
||||||
|
|
||||||
out = self.phenny.say.call_args[0][0]
|
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)
|
self.assertTrue(m)
|
||||||
|
|
||||||
def test_tasteometer(self):
|
def test_tasteometer(self):
|
||||||
|
|
Loading…
Reference in New Issue