def test_env(self):
    self._testme_std(['--format=env', 'resources/nginx-env.j2', 'resources/data.env'])
    self._testme_std(['resources/nginx-env.j2', 'resources/data.env'])
    self._testme_std(['--format=env', 'resources/nginx-env.j2', 'resources/data.env'])
    self._testme_std(['resources/nginx-env.j2', 'resources/data.env'])
    self._testme_std(['--format=env', 'resources/nginx-env.j2', '-'], stdin=open('resources/data.env'))
    self._testme_std(['resources/nginx-env.j2', '-'], stdin=open('resources/data.env'))
    env = dict(NGINX_HOSTNAME='localhost', NGINX_WEBROOT='/var/www/project', NGINX_LOGS='/var/log/nginx/')
    self._testme_std(['--format=env', 'resources/nginx-env.j2'], env=env)
    self._testme_std(['resources/nginx-env.j2'], env=env)
def test_env(self):
    self._testme_std(['--format=env', 'resources/nginx-env.j2', 'resources/data.env'])
    self._testme_std(['resources/nginx-env.j2', 'resources/data.env'])
    self._testme_std(['--format=env', 'resources/nginx-env.j2', 'resources/data.env'])
    self._testme_std(['resources/nginx-env.j2', 'resources/data.env'])
    self._testme_std(['--format=env', 'resources/nginx-env.j2', '-'], stdin=open('resources/data.env'))
    self._testme_std(['resources/nginx-env.j2', '-'], stdin=open('resources/data.env'))
    env = dict(NGINX_HOSTNAME='localhost', NGINX_WEBROOT='/var/www/project', NGINX_LOGS='/var/log/nginx/')
    self._testme_std(['--format=env', 'resources/nginx-env.j2'], env=env)
    self._testme_std(['resources/nginx-env.j2'], env=env)