Fix mock function restoration in test :(

An argument for using decorators, context managers and stuff so this is
impossible to mess up.
This commit is contained in:
Adrian Sampson 2014-10-24 17:15:09 -07:00
parent 798838a0f6
commit c158bb630c

View file

@ -65,7 +65,7 @@ class AutotagStub(object):
def restore(self):
autotag.mb.match_album = self.mb_match_album
autotag.mb.match_track = self.mb_match_album
autotag.mb.match_track = self.mb_match_track
autotag.mb.album_for_id = self.mb_album_for_id
autotag.mb.track_for_id = self.mb_track_for_id