From c158bb630ca3028fbeb468caa2d107177e0e9df3 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Fri, 24 Oct 2014 17:15:09 -0700 Subject: [PATCH] Fix mock function restoration in test :( An argument for using decorators, context managers and stuff so this is impossible to mess up. --- test/test_importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_importer.py b/test/test_importer.py index 6d1b65dab..feafad923 100644 --- a/test/test_importer.py +++ b/test/test_importer.py @@ -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