def METHOD_NAME(get, post, organization_factory):
    objects = organization_factory('test_org', superusers=['admin'], users=['test'], inventories=['inv1'])
    url = reverse('api:user_roles_list', kwargs={'pk': objects.users.test.pk})
    post(url, dict(id=objects.inventories.inv1.read_role.pk), objects.superusers.admin)
    activity_stream = ActivityStream.objects.filter(
        inventory__pk=objects.inventories.inv1.pk, user__pk=objects.users.test.pk, role__pk=objects.inventories.inv1.read_role.pk
    ).first()
    url = reverse('api:activity_stream_detail', kwargs={'pk': activity_stream.pk})
    response = get(url, objects.users.test)
    assert response.data['object1'] == 'user'
    assert response.data['object2'] == 'inventory'