#NEWLINE# def assert_rpm_content( test_case , expected_paths , package_path ) : #NEWLINE# #INDENT# '\n    Fail unless the ``RPM`` file at ``rpm_path`` contains all the\n    ``expected_paths``.\n\n    :param test_case: The ``TestCase`` whose assert methods will be called.\n    :param set expected_paths: A set of ``FilePath`` s\n    :param FilePath package_path: The path to the package under test.\n    ' #NEWLINE# output = check_output ( [ 'rpm' , '--query' , '--list' , '--package' , package_path . path ] ) #NEWLINE# actual_paths = set ( map ( FilePath , output . splitlines ( ) ) ) #NEWLINE# test_case . assertEqual ( output , actual_paths )