Example #1
0
 def setUpClass(cls) -> None:
     cls.my_book = bcr.PyBook('My_title1', 'My_author1')
     a, b = cls.my_book.book_create()
Example #2
0
 def setUp(self) -> None:
     self.my_book = bcr.PyBook('test title1', 'test author1')
     self.create_code, self.create_resp = self.my_book.book_create()
Example #3
0
 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)
Example #4
0
 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)
Example #5
0
def tutorial():
    return bcr.PyBook('test title1', 'test author1')