コード例 #1
0
ファイル: TestFormatExists.py プロジェクト: jeroanan/Aquarius
 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"))
コード例 #2
0
ファイル: TestFormatExists.py プロジェクト: jeroanan/Aquarius
 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"))