'If a non-admin user creates a container, an administrator should be able to
manage it.'

def test_admin_can_manage_other_containers(self):

    user = User.objects.get(username=u'autotest2')
    token = Token.objects.get(user=user).key
    url = u'/v1/apps'
    response = self.client.post(url, HTTP_AUTHORIZATION=u'token    {}'.format(token))
    self.assertEqual(response.status_code, 201)
    app_id = response.data[u'id']
    url = u'/v1/apps/{app_id}/builds'.format(**locals())
    body = {u'image': u'autotest/example', u'sha': (u'a' * 40), u'procfile': json.dumps({u'web': u'node    server.js', u'worker': u'node    worker.js'})}
    response = self.client.post(url, json.dumps(body), content_type=u'application/json', HTTP_AUTHORIZATION=u'token    {}'.format(token))
    self.assertEqual(response.status_code, 201)
    url = u'/v1/apps/{app_id}/scale'.format(**locals())
    body = {u'web': 4, u'worker': 2}
    response = self.client.post(url, json.dumps(body), content_type=u'application/json', HTTP_AUTHORIZATION=u'token    {}'.format(self.token))
    self.assertEqual(response.status_code, 204)
