'From Issue #1035'

def test_same_object_added(self):

    user = User.objects.create(username='gjcourt')
    ur = UserResource()
    fr = ForumResource()
    resp = self.client.post(fr.get_resource_uri(), content_type='application/json', data=json.dumps({'name': 'Test    Forum', 'members': [ur.get_resource_uri(user)], 'moderators': [ur.get_resource_uri(user)]}))
    self.assertEqual(resp.status_code, 201, resp.content)
    data = json.loads(resp.content.decode('utf-8'))
    self.assertEqual(len(data['moderators']), 1)
    self.assertEqual(len(data['members']), 1)
