'Verifies that loading policies by way of admin context after
populating extensions and extending the resource map results in
networks with router:external are visible to regular tenants.'

def test_proper_load_order(self):

    policy.reset()
    extension_manager = extensions.ExtensionManager(self.extension_path)
    extension_manager.extend_resources(self.api_version, attributes.RESOURCE_ATTRIBUTE_MAP)
    policy.init()
    admin_context = context.get_admin_context()
    tenant_context = context.Context('test_user', 'test_tenant_id', False)
    self.assertTrue(self._check_external_router_policy(admin_context))
    self.assertTrue(self._check_external_router_policy(tenant_context))
