'On authenticate, get a catalog that excludes disabled endpoints.'

def test_auth_catalog_disabled_endpoint(self):

    endpoint_ref = self._create_endpoints()
    body_dict = _build_user_auth(username='foo', password='foo2', tenant_name='BAR')
    token = self.controller.authenticate(self.make_request(), body_dict)
    self.assertEqual(1, len(token['access']['serviceCatalog']))
    endpoint = token['access']['serviceCatalog'][0]['endpoints'][0]
    self.assertEqual(1, len(token['access']['serviceCatalog'][0]['endpoints']))
    exp_endpoint = {'id': endpoint_ref['id'], 'publicURL': endpoint_ref['url'], 'region': endpoint_ref['region_id']}
    self.assertEqual(exp_endpoint, endpoint)
