def assert_rpm_headers(test_case, expected_headers, rpm_path):
 output = check_output(['rpm', '--query', '--info', '--package', rpm_path.path])
 actual_headers = parse_colon_dict(output)
 assert_dict_contains(test_case, expected_headers, actual_headers, 'Missing RPM Headers: ')

def assert_rpm_headers ( test_case , expected_headers , rpm_path ) : output = check_output ( [ 'rpm' , '--query' , '--info' , '--package' , rpm_path . path ] ) actual_headers = parse_colon_dict ( output ) assert_dict_contains ( test_case , expected_headers , actual_headers , 'Missing RPM Headers: ' )
fail unless the rpm file at rpm_path contains all the expected_headers .