Module Expr Str Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore ListLoad If UnaryOpNot NameLoad body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Dict For TupleStore NameStore NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call NameLoad Call NameLoad Str orelse Assign NameStore NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad Str Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad BinOpMod Str TupleLoad NameLoad keyword ListLoad Str keyword ListLoad Str keyword ListLoad BinOpMod Str TupleLoad NameLoad keyword ListLoad Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad keyword ListLoad BinOpMod Str TupleLoad NameLoad keyword ListLoad Str keyword ListLoad Str keyword ListLoad BinOpMod Str TupleLoad NameLoad keyword ListLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad BinOpMod Str TupleLoad NameLoad keyword ListLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad keyword ListLoad BinOpMod Str TupleLoad NameLoad keyword ListLoad BinOpMod Str TupleLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad NameLoad keyword ListLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad keyword ListLoad NameLoad keyword ListLoad BinOpMod Str TupleLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad keyword ListLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad keyword ListLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str keyword ListLoad Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str keyword ListLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad keyword NameLoad decorator_list decorator_list
N/A N/A 
Tests for L{twisted.scripts.tap2rpm}.
 N/A os twisted.trial.unittest TestCase SkipTest twisted.python procutils twisted.python.failure Failure twisted.internet utils twisted.scripts tap2rpm N/A RECORD_SEPARATOR N/A UNIT_SEPARATOR _makeRPMs N/A N/A tapfile maintainer protocol description longDescription setVersion rpmfile type_ N/A None None None None None None None None N/A N/A 
    Helper function to invoke tap2rpm with the given parameters.
     N/A args N/A N/A N/A tapfile N/A N/A tapfile dummy-tap-file N/A handle N/A open tapfile w N/A N/A N/A handle write # Dummy TAP file
 N/A N/A N/A handle close N/A N/A N/A args extend N/A --quiet --tapfile tapfile N/A maintainer N/A N/A N/A N/A args extend N/A --maintainer maintainer N/A protocol N/A N/A N/A N/A args extend N/A --protocol protocol N/A description N/A N/A N/A N/A args extend N/A --description description N/A longDescription N/A N/A N/A N/A args extend N/A --long_description longDescription N/A setVersion N/A N/A N/A N/A args extend N/A --set-version setVersion N/A rpmfile N/A N/A N/A N/A args extend N/A --rpmfile rpmfile N/A type_ N/A N/A N/A N/A args extend N/A --type type_ N/A N/A N/A tap2rpm run args N/A _queryRPMTags N/A N/A rpmfile taglist N/A N/A N/A 
    Helper function to read the given header tags from the given RPM file.

    Returns a Deferred that fires with dictionary mapping a tag name to a list
    of the associated values in the RPM header. If a tag has only a single
    value in the header (like NAME or VERSION), it will be returned as a 1-item
    list.

    Run "rpm --querytags" to see what tags can be queried.
     N/A queryFormat N/A N/A RECORD_SEPARATOR join N/A N/A [%%{%s}%s] N/A tag UNIT_SEPARATOR N/A tag taglist parseTagValues N/A N/A output N/A N/A N/A res N/A N/A N/A tag values N/A zip taglist N/A N/A output split RECORD_SEPARATOR N/A N/A values N/A N/A N/A N/A values strip UNIT_SEPARATOR split UNIT_SEPARATOR N/A N/A res N/A tag values N/A res N/A checkErrorResult N/A N/A failure N/A N/A N/A N/A N/A failure trap IOError N/A N/A N/A N/A str N/A failure value startswith got stderr: 'error:  N/A N/A newFailure N/A Failure N/A SkipTest rpm is missing its package database. Run 'sudo rpm -qa > /dev/null' to create one. N/A N/A newFailure failure N/A d N/A N/A failure value processEnded N/A N/A N/A d addBoth N/A N/A N/A _ N/A newFailure N/A d N/A N/A d N/A N/A utils getProcessOutput rpm N/A -q --queryformat queryFormat -p rpmfile N/A N/A N/A d addCallbacks parseTagValues checkErrorResult N/A d N/A TestTap2RPM N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A self _checkForRpmbuild N/A _checkForRpmbuild N/A N/A self N/A N/A N/A 
        tap2rpm requires rpmbuild; skip tests if rpmbuild is not present.
         N/A N/A N/A N/A procutils which rpmbuild N/A N/A N/A SkipTest rpmbuild must be present to test tap2rpm N/A _makeTapFile N/A N/A self basename N/A dummy N/A N/A 
        Make a temporary .tap file and returns the absolute path.
         N/A path N/A basename .tap N/A handle N/A open path w N/A N/A N/A handle write # Dummy .tap file N/A N/A N/A handle close N/A path N/A _verifyRPMTags N/A N/A self rpmfile N/A tags N/A N/A 
        Check the given file has the given tags set to the given values.
         N/A d N/A _queryRPMTags rpmfile N/A N/A tags keys N/A N/A N/A d addCallback N/A self assertEquals tags N/A d N/A test_optionDefaults N/A N/A self N/A N/A N/A 
        Commandline options should default to sensible values.

        "sensible" here is defined as "the same values that previous versions
        defaulted to".
         N/A config N/A N/A tap2rpm MyOptions N/A N/A N/A config parseOptions N/A N/A N/A N/A self assertEquals N/A config N/A tapfile twistd.tap N/A N/A N/A self assertEquals N/A config N/A maintainer tap2rpm N/A N/A N/A self assertEquals N/A config N/A protocol twistd N/A N/A N/A self assertEquals N/A config N/A description A TCP server for twistd N/A N/A N/A self assertEquals N/A config N/A long_description Automatically created by tap2rpm N/A N/A N/A self assertEquals N/A config N/A set-version 1.0 N/A N/A N/A self assertEquals N/A config N/A rpmfile twisted-twistd N/A N/A N/A self assertEquals N/A config N/A type tap N/A N/A N/A self assertEquals N/A config N/A quiet False N/A N/A N/A self assertEquals N/A config N/A twistd_option file N/A N/A N/A self assertEquals N/A config N/A release-name twisted-twistd-1.0 N/A test_protocolCalculatedFromTapFile N/A N/A self N/A N/A N/A 
        The protocol name defaults to a value based on the tapfile value.
         N/A config N/A N/A tap2rpm MyOptions N/A N/A N/A config parseOptions N/A --tapfile pancakes.tap N/A N/A N/A self assertEquals N/A config N/A tapfile pancakes.tap N/A N/A N/A self assertEquals N/A config N/A protocol pancakes N/A test_optionsDefaultToProtocolValue N/A N/A self N/A N/A N/A 
        Many options default to a value calculated from the protocol name.
         N/A config N/A N/A tap2rpm MyOptions N/A N/A N/A config parseOptions N/A --tapfile sausages.tap --protocol eggs N/A N/A N/A self assertEquals N/A config N/A tapfile sausages.tap N/A N/A N/A self assertEquals N/A config N/A maintainer tap2rpm N/A N/A N/A self assertEquals N/A config N/A protocol eggs N/A N/A N/A self assertEquals N/A config N/A description A TCP server for eggs N/A N/A N/A self assertEquals N/A config N/A long_description Automatically created by tap2rpm N/A N/A N/A self assertEquals N/A config N/A set-version 1.0 N/A N/A N/A self assertEquals N/A config N/A rpmfile twisted-eggs N/A N/A N/A self assertEquals N/A config N/A type tap N/A N/A N/A self assertEquals N/A config N/A quiet False N/A N/A N/A self assertEquals N/A config N/A twistd_option file N/A N/A N/A self assertEquals N/A config N/A release-name twisted-eggs-1.0 N/A test_releaseNameDefaultsToRpmfileValue N/A N/A self N/A N/A N/A 
        The release-name option is calculated from rpmfile and set-version.
         N/A config N/A N/A tap2rpm MyOptions N/A N/A N/A config parseOptions N/A --rpmfile beans --set-version 1.2.3 N/A N/A N/A self assertEquals N/A config N/A release-name beans-1.2.3 N/A test_basicOperation N/A N/A self N/A N/A N/A 
        Calling tap2rpm should produce an RPM and SRPM with default metadata.
         N/A basename frenchtoast N/A N/A rpm srpm N/A _makeRPMs tapfile N/A N/A self _makeTapFile basename N/A d N/A N/A self _verifyRPMTags rpm NAME N/A N/A twisted-%s N/A basename VERSION N/A 1.0 RELEASE N/A 1 SUMMARY N/A N/A A TCP server for %s N/A basename DESCRIPTION N/A Automatically created by tap2rpm N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A self _verifyRPMTags srpm NAME N/A N/A twisted-%s N/A basename VERSION N/A 1.0 RELEASE N/A 1 SUMMARY N/A N/A A TCP server for %s N/A basename DESCRIPTION N/A Automatically created by tap2rpm N/A d N/A test_protocolOverride N/A N/A self N/A N/A N/A 
        Setting 'protocol' should change the name of the resulting package.
         N/A basename acorn N/A protocol banana N/A N/A rpm srpm N/A _makeRPMs tapfile N/A N/A self _makeTapFile basename protocol protocol N/A d N/A N/A self _verifyRPMTags rpm NAME N/A N/A twisted-%s N/A protocol SUMMARY N/A N/A A TCP server for %s N/A protocol N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A self _verifyRPMTags srpm NAME N/A N/A twisted-%s N/A protocol SUMMARY N/A N/A A TCP server for %s N/A protocol N/A d N/A test_rpmfileOverride N/A N/A self N/A N/A N/A 
        Setting 'rpmfile' should change the name of the resulting package.
         N/A basename cherry N/A rpmfile donut N/A N/A rpm srpm N/A _makeRPMs tapfile N/A N/A self _makeTapFile basename rpmfile rpmfile N/A d N/A N/A self _verifyRPMTags rpm NAME N/A rpmfile SUMMARY N/A N/A A TCP server for %s N/A basename N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A self _verifyRPMTags srpm NAME N/A rpmfile SUMMARY N/A N/A A TCP server for %s N/A basename N/A d N/A test_descriptionOverride N/A N/A self N/A N/A N/A 
        Setting 'description' should change the SUMMARY tag.
         N/A description eggplant N/A N/A rpm srpm N/A _makeRPMs tapfile N/A N/A self _makeTapFile description description N/A d N/A N/A self _verifyRPMTags rpm SUMMARY N/A description N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A self _verifyRPMTags srpm SUMMARY N/A description N/A d N/A test_longDescriptionOverride N/A N/A self N/A N/A N/A 
        Setting 'longDescription' should change the DESCRIPTION tag.
         N/A longDescription fig N/A N/A rpm srpm N/A _makeRPMs tapfile N/A N/A self _makeTapFile longDescription longDescription N/A d N/A N/A self _verifyRPMTags rpm DESCRIPTION N/A longDescription N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A self _verifyRPMTags srpm DESCRIPTION N/A longDescription N/A d N/A test_setVersionOverride N/A N/A self N/A N/A N/A 
        Setting 'setVersion' should change the RPM's version info.
         N/A version 123.456 N/A N/A rpm srpm N/A _makeRPMs tapfile N/A N/A self _makeTapFile setVersion version N/A d N/A N/A self _verifyRPMTags rpm VERSION N/A 123.456 RELEASE N/A 1 N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A self _verifyRPMTags srpm VERSION N/A 123.456 RELEASE N/A 1 N/A d N/A test_tapInOtherDirectory N/A N/A self N/A N/A N/A 
        tap2rpm handles tapfiles outside the current directory.
         N/A tempdir N/A N/A self mktemp N/A N/A N/A os mkdir tempdir N/A tapfile N/A N/A self _makeTapFile N/A N/A N/A os path join tempdir bacon N/A N/A _makeRPMs tapfile tapfile N/A N/A