'Nobody should be able to create applications with names which are reserved.'

def test_app_reserved_names(self):

    url = u'/v1/apps'
    reserved_names = [u'foo', u'bar']
    with self.settings(DEIS_RESERVED_NAMES=reserved_names):
        for name in reserved_names:
            body = {u'id': name}
            response = self.client.post(url, json.dumps(body), content_type=u'application/json', HTTP_AUTHORIZATION=u'token    {}'.format(self.token))
            self.assertContains(response, u'{}    is    a    reserved    name.'.format(name), status_code=400)
