'Update an SP with custom relay state.'

def test_update_sp_relay_state(self):

    new_sp_ref = self.sp_ref()
    non_default_prefix = uuid.uuid4().hex
    new_sp_ref['relay_state_prefix'] = non_default_prefix
    url = self.base_url(suffix=self.SERVICE_PROVIDER_ID)
    resp = self.patch(url, body={'service_provider': new_sp_ref})
    sp_result = resp.result['service_provider']
    self.assertEqual(non_default_prefix, sp_result['relay_state_prefix'])
