def test_album(self): album = Album() track = Track(album=album) self.assertEqual(track.album, album) with self.assertRaises(AttributeError): track.album = None
def test_album(self): album = Album() track = Track(album=album) assert track.album == album with self.assertRaises(AttributeError): track.album = None