def test_relations(self):
        settings.DATABASE_POOL = {
            'other': 1,
            'utility': 1,
        }
        self.router = WeightedRandomRouter()

        # Even though default isn't in the database pool, it is the master so
        # the relation should be allowed.
        self.obj1._state.db = 'default'
        self.obj2._state.db = 'other'
        self.assertTrue(self.router.allow_relation(self.obj1, self.obj2))
Verify that the default port number is 8080.
dataset/ETHPy150Open michaelhelmick/django-balancer/tests/__init__.py/MasterSlaveTestMixin.test_relations--crossover with--dataset/ETHPy150Open twisted/nevow/nevow/test/test_athena.py/WidgetSubcommandTests.test_defaultPort