def test_name(self): name = 'a name' playlist = Playlist(name=name) self.assertEqual(playlist.name, name) with self.assertRaises(AttributeError): playlist.name = None
def test_name(self): name = "a name" playlist = Playlist(name=name) assert playlist.name == name with self.assertRaises(AttributeError): playlist.name = None