+ def test_mpd_serialization(self):
+ """Controls serialization of names"""
+ name = "Heaven's Door"
+ heavens_door = Meta(name=name)
+ target = r"Heaven\'s Door"
+ self.assertEqual(heavens_door.name_sz, target)
+ self.assertEqual(heavens_door.name, name)
+ self.assertEqual(heavens_door.names_sz, {target})
+ heavens_door.add_alias(name+" LP")
+ self.assertEqual(heavens_door.aliases_sz, {target+" LP"})
+ # Controls inheritance
+ heavens_door = Album(name=name)
+ self.assertEqual(heavens_door.name_sz, target)
+ heavens_door = Artist(name=name)
+ self.assertEqual(heavens_door.name_sz, target)
+