def testDeleteNotFound(self): self.assertRaises(rpa.RepositoryException, rpa.repoaga().delete(1), 11 )
def testGetByIdNotFound(self): self.assertEqual(rpa.repoaga().getById(22), None, "Powinno wyjść None")
def testGetByIdAktorLen(self): self.assertEqual(len(rpa.repoaga().getById(1).aktorzy), 2, "Powinno wyjść 2")
def testGetById(self): film = rpa.repoaga().getById(1) self.assertIsInstance(film, rpa.Film, "Objekt nie jest klasy Film")