'A user should not be able to scale processes unless a build is present.'

def test_scale_without_build_should_error(self):

    app_id = u'autotest'
    url = u'/v1/apps'
    body = {u'cluster': u'autotest', 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/{app_id}/scale'.format(**locals())
    body = {u'web': u'1'}
    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'})
