def test_json(self):
    self._testme_std(['resources/nginx.j2', 'resources/data.json'])
    self._testme_std(['--format=json', 'resources/nginx.j2', 'resources/data.json'])
    self._testme_std(['--format=json', 'resources/nginx.j2'], stdin=open('resources/data.json'))
    self._testme_std(['--format=json', 'resources/nginx.j2', '-'], stdin=open('resources/data.json'))
def test_json(self):
    self._testme_std(['resources/nginx.j2', 'resources/data.json'])
    self._testme_std(['--format=json', 'resources/nginx.j2', 'resources/data.json'])
    self._testme_std(['--format=json', 'resources/nginx.j2'], stdin=open('resources/data.json'))
    self._testme_std(['--format=json', 'resources/nginx.j2', '-'], stdin=open('resources/data.json'))