Fix typo and test bug revealed by mock fix

Mock used to tolerate a mistyped call like `assert_calledwith` when we meant
`assert_called_with` silently. This seems to be fixed. Fixing the typo
revealed that the assertion was actually wrong, so I fixed that too.
This commit is contained in:
Adrian Sampson 2015-07-13 16:34:09 -07:00
parent 9aad2115e0
commit 287f0d8cef

View file

@ -471,7 +471,7 @@ class MBLibraryTest(unittest.TestCase):
ai = list(mb.match_album('hello', 'there'))[0]
sp.assert_called_with(artist='hello', release='there', limit=5)
gp.assert_calledwith(mbid)
gp.assert_called_with(mbid, mock.ANY)
self.assertEqual(ai.tracks[0].title, 'foo')
self.assertEqual(ai.album, 'hi')