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