def assert_deb_headers(test_case, expected_headers, package_path):
 output = check_output(['dpkg', '--info', package_path.path])
 actual_headers = parse_colon_dict(output)
 assert_dict_contains(test_case, expected_headers, actual_headers, 'Missing dpkg Headers: ')

def assert_deb_headers ( test_case , expected_headers , package_path ) : output = check_output ( [ 'dpkg' , '--info' , package_path . path ] ) actual_headers = parse_colon_dict ( output ) assert_dict_contains ( test_case , expected_headers , actual_headers , 'Missing dpkg Headers: ' )
fail unless the deb file at package_path contains all the expected_headers .