#!/usr/bin/env python3 ''' aptly-resource test out ''' from subprocess import run with open('out.in.json', 'r', encoding='utf-8') as f: contents = f.read() run(['./out tmp.out'], input = contents.encode(), check = True, shell = True, )