def test_disc_no(self): disc_no = 2 track = Track(disc_no=disc_no) self.assertEqual(track.disc_no, disc_no) with self.assertRaises(AttributeError): track.disc_no = None
def test_disc_no(self): disc_no = 2 track = Track(disc_no=disc_no) assert track.disc_no == disc_no with self.assertRaises(AttributeError): track.disc_no = None