'Test behaviour with disabled service providers.
Disabled service providers should not be listed in the service
catalog.'

def test_service_provides_in_token_disabled_sp(self):

    sp_ref = {'enabled': False}
    self.federation_api.update_sp(self.SP1, sp_ref)
    token = self.token_v3_helper.get_token_data(self.user_id, ['password'])
    ref = {}
    for r in (self.sp_beta, self.sp_gamma):
        ref.update(r)
    self._validate_service_providers(token, ref)
