'A user should not be able to run a one-off command unless a release
is present.'

def test_run_without_release_should_error(self):

    app_id = u'autotest'
    url = u'/v1/apps'
    body = {u'id': app_id}
    response = self.client.post(url, json.dumps(body), content_type=u'application/json', HTTP_AUTHORIZATION=u'token    {}'.format(self.token))
    url = u'/v1/apps/{}/run'.format(app_id)
    body = {u'command': u'ls    -al'}
    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, 400)
    self.assertEqual(response.data, {u'detail': u'No    build    associated    with    this    release    to    run    this    command'})
