def assert_rpm_content(test_case, expected_paths, package_path):
 output = check_output(['rpm', '--query', '--list', '--package', package_path.path])
 actual_paths = set(map(FilePath, output.splitlines()))
 test_case.assertEqual(expected_paths, actual_paths)

def assert_rpm_content ( test_case , expected_paths , package_path ) : output = check_output ( [ 'rpm' , '--query' , '--list' , '--package' , package_path . path ] ) actual_paths = set ( map ( FilePath , output . splitlines ( ) ) ) test_case . assertEqual ( expected_paths , actual_paths )
fail unless the rpm file at rpm_path contains all the expected_paths .