

def test_dburl_not_defined(self):
    empty_context = type('context', (object,), dict())
    dbconn = dbtools.open_database(empty_context)
    self.assertEqual(dbconn, None, 'No dburl provided should return None as connection')

dataset/ETHPy150Open F-Secure/mittn/mittn/httpfuzzer/test_dbtools.py dbtools_test_case.test_dburl_not_defined/original