Esempio n. 1
0
 def test_book_exists_returns_true(self):
     conn = self.setup_mock([1])
     a = FormatExists(conn)
     self.assertTrue(a.execute(book_id=1, book_format="epub"))
Esempio n. 2
0
 def test_book_does_not_exist_return_false(self):
     conn = self.setup_mock([])
     a = FormatExists(conn)
     self.assertFalse(a.execute(book_id=1, book_format="epub"))