コード例 #1
0
    def testRowShouldNotExistInTable(self):
        dbDriver = DBDriverMock()

        sut = Pydblibrary()

        sut.connect_to_database(dbDriver, 'someDbName', 'someUsername',
                                'somePassword', 'someHost', '7777')

        sut.row_should_not_exist_in_table('employee', "surname='Doe'")
コード例 #2
0
    def testRowShouldNotExistInTable(self):
        dbDriver = DBDriverMock()

        sut = Pydblibrary()

        sut.connect_to_database(dbDriver, 'someDbName', 'someUsername',
                                'somePassword', 'someHost', '7777')

        sut.row_should_not_exist_in_table('employee', "surname='Doe'")