Beispiel #1
0
class TestAddBookType(unittest.TestCase):

    def setUp(self):
        self.__connection = ConnectionSpy()
        self.__target = AddBookType(self.__connection)

    def test_add_book_type_calls_correct_collaborating_objects(self):
        bt = BookType()
        bt.Format = "EPUB"
        bt.MimeType = "MIME"
        self.__target.execute(bt)
        self.assertEquals(1, self.__connection.fetch_none_with_params_calls)
Beispiel #2
0
 def setUp(self):
     self.__connection = ConnectionSpy()
     self.__target = AddBookType(self.__connection)