def METHOD_NAME(self):
    lib = SongFileLibrary()
    with temp_filename() as song_fn:
        song = AudioFile({"~filename": song_fn})
        song.sanitize()
        lib.add([song])
        # test recovery of basic song
        data = {"path": song("~filename"), "rating": 1,
        "playcount": 1, "skipcount": 2,
        "lastplayed": 1371802107, "added": 1260691996}
        db = get_example_db(data["path"], data["rating"],
                            data["playcount"], data["skipcount"],
                            data["lastplayed"], data["added"])
        importer = self.mod.BansheeDBImporter(lib)
        importer.read(db)
        count = importer.finish()
        db.close()
        self.assertEqual(song("~#rating"), data["rating"] / 5.0)
        self.assertEqual(song("~#playcount"), data["playcount"])
        self.assertEqual(song("~#skipcount"), data["skipcount"])
        self.assertEqual(song("~#lastplayed"), data["lastplayed"])
        self.assertEqual(song("~#added"), data["added"])
        self.assertEqual(count, 1)
        # test recovery of different version of same song
        data_mod = {"path": song("~filename"), "rating": 2,
        "playcount": 4, "skipcount": 1,
        "lastplayed": data["lastplayed"] - 1, "added": data["added"] + 1}
        db = get_example_db(data_mod["path"], data_mod["rating"],
                            data_mod["playcount"], data_mod["skipcount"],
                            data_mod["lastplayed"], data_mod["added"])
        importer = self.mod.BansheeDBImporter(lib)
        importer.read(db)
        count = importer.finish()
        db.close()
        self.assertEqual(song("~#rating"), data_mod["rating"] / 5.0)
        self.assertEqual(song("~#playcount"), data_mod["playcount"])
        self.assertEqual(song("~#skipcount"), data_mod["skipcount"])
        self.assertEqual(song("~#lastplayed"), data["lastplayed"])
        self.assertEqual(song("~#added"), data["added"])
        self.assertEqual(count, 1)
        # test that no recovery is performed when data is identical
        db = get_example_db(data_mod["path"], data_mod["rating"],
                            data_mod["playcount"], data_mod["skipcount"],
                            data_mod["lastplayed"], data_mod["added"])
        importer = self.mod.BansheeDBImporter(lib)
        importer.read(db)
        count = importer.finish()
        db.close()
        self.assertEqual(count, 0)