def setUpClass(cls) -> None: cls.my_book = bcr.PyBook('My_title1', 'My_author1') a, b = cls.my_book.book_create()
def setUp(self) -> None: self.my_book = bcr.PyBook('test title1', 'test author1') self.create_code, self.create_resp = self.my_book.book_create()
def testBookDelCode(self): self.my_book = bcr.PyBook('test title1', 'test author1') self.my_book.book_create() code = self.my_book.book_del() self.assertEqual(code, 204)
def testDelAnyBook(self): self.my_book = bcr.PyBook() self.my_book.book_url = "http://pulse-rest-testing.herokuapp.com/books/0/" code = self.my_book.book_del() self.assertEqual(code, 404)
def tutorial(): return bcr.PyBook('test title1', 'test author1')