'Create an SP with custom relay state.'

def test_create_sp_relay_state_non_default(self):

    url = self.base_url(suffix=uuid.uuid4().hex)
    sp = self.sp_ref()
    non_default_prefix = uuid.uuid4().hex
    sp['relay_state_prefix'] = non_default_prefix
    resp = self.put(url, body={'service_provider': sp}, expected_status=http_client.CREATED)
    sp_result = resp.result['service_provider']
    self.assertEqual(non_default_prefix, sp_result['relay_state_prefix'])
