def test_setup_databases(self):
        runner = DjangoTestSuiteRunner(verbosity=0)
        old_db_connections = db.connections
        try:
            db.connections = db.ConnectionHandler({})
            old_config = runner.setup_databases()
            runner.teardown_databases(old_config)
        except Exception as e:
            self.fail("setup_databases/teardown_databases unexpectedly raised "
                      "an error: %s" % e)
        finally:
            db.connections = old_db_connections
Test that setup_databases() doesn't fail with dummy database backend.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/test_runner/tests.py/DummyBackendTest.test_setup_databases