Module Import alias ImportFrom alias alias alias Import alias FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str NameLoad decorator_list Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str If CompareNotIn Str AttributeLoad NameLoad attr body Return NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq Call NameLoad NameLoad Num Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Return TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore NameLoad body For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Break orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body For NameStore NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Break orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Assign NameStore Str For NameStore Call AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad NameLoad body Break orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list Assign NameStore Call NameLoad Str Str Str Assign NameStore Call NameLoad Str Str Str Assign NameStore Call NameLoad Str Str Str Assign NameStore Call NameLoad Str Str Str Assign NameStore Call NameLoad Str Str Str Assign NameStore Call NameLoad Str Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Str NameLoad Assign NameStore Call NameLoad Str Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BoolOpAnd NameLoad Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest openid.yadis services etxrd xri N/A os.path datapath N/A N/A filename N/A N/A N/A module_directory N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ N/A N/A N/A N/A os path join module_directory data test_etxrd filename N/A N/A XRD_FILE N/A datapath valid-populated-xrds.xml N/A NOXRDS_FILE N/A datapath not-xrds.xml N/A NOXRD_FILE N/A datapath no-xrd.xml N/A LID_2_0 http://lid.netmesh.org/sso/2.0b5 N/A TYPEKEY_1_0 http://typekey.com/services/1.0 simpleOpenIDTransformer N/A N/A endpoint N/A N/A N/A Function to extract information from an OpenID service element N/A N/A http://openid.net/signon/1.0 N/A endpoint type_uris N/A N/A None N/A delegates N/A list N/A N/A N/A endpoint service_element findall {http://openid.net/xmlns/1.0}Delegate N/A N/A N/A len delegates 1 N/A delegate N/A N/A delegates N/A 0 text N/A N/A N/A endpoint uri delegate N/A TestServiceParser N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self xmldoc N/A N/A N/A file XRD_FILE read N/A N/A self yadis_url http://unittest.url/ N/A _getServices N/A N/A self flt N/A None N/A N/A N/A list N/A N/A services applyFilter N/A self yadis_url N/A self xmldoc flt N/A testParse N/A N/A self N/A N/A N/A Make sure that parsing succeeds at all N/A services N/A N/A self _getServices N/A testParseOpenID N/A N/A self N/A N/A N/A Parse for OpenID services with a transformer function N/A services N/A N/A self _getServices simpleOpenIDTransformer N/A expectedServices N/A N/A http://www.myopenid.com/server http://josh.myopenid.com/ N/A http://www.schtuff.com/openid http://users.schtuff.com/josh N/A http://www.livejournal.com/openid/server.bml http://www.livejournal.com/users/nedthealpaca/ N/A it N/A iter services N/A N/A server_url delegate expectedServices N/A N/A N/A actual_url actual_delegate it N/A N/A N/A N/A self failUnlessEqual server_url actual_url N/A N/A N/A self failUnlessEqual delegate actual_delegate N/A N/A N/A N/A N/A self fail Not enough services found N/A _checkServices N/A N/A self expectedServices N/A N/A N/A Check to make sure that the expected services are found in
        that order in the parsed document. N/A it N/A iter N/A N/A self _getServices N/A N/A type_uri uri expectedServices N/A N/A service it N/A N/A N/A type_uri N/A service type_uris N/A N/A N/A N/A self failUnlessEqual N/A service uri uri N/A N/A N/A N/A N/A self fail N/A Did not find %r service N/A type_uri N/A testGetSeveral N/A N/A self N/A N/A N/A Get some services in order N/A expectedServices N/A N/A TYPEKEY_1_0 None N/A LID_2_0 http://mylid.net/josh N/A N/A N/A self _checkServices expectedServices N/A testGetSeveralForOne N/A N/A self N/A N/A N/A Getting services for one Service with several Type elements. N/A types N/A http://lid.netmesh.org/sso/2.0b5 http://lid.netmesh.org/2.0b5 N/A uri http://mylid.net/josh N/A service N/A N/A self _getServices N/A N/A N/A N/A service uri uri N/A N/A found_types N/A N/A service matchTypes types N/A N/A found_types types N/A N/A N/A N/A N/A N/A self fail Did not find service with expected types and uris N/A testNoXRDS N/A N/A self N/A N/A N/A Make sure that we get an exception when an XRDS element is
        not present N/A N/A self xmldoc N/A N/A N/A file NOXRDS_FILE read N/A N/A N/A self failUnlessRaises N/A etxrd XRDSError N/A services applyFilter N/A self yadis_url N/A self xmldoc None N/A testEmpty N/A N/A self N/A N/A N/A Make sure that we get an exception when an XRDS element is
        not present N/A N/A self xmldoc N/A N/A N/A self failUnlessRaises N/A etxrd XRDSError N/A services applyFilter N/A self yadis_url N/A self xmldoc None N/A testNoXRD N/A N/A self N/A N/A N/A Make sure that we get an exception when there is no XRD
        element present. N/A N/A self xmldoc N/A N/A N/A file NOXRD_FILE read N/A N/A N/A self failUnlessRaises N/A etxrd XRDSError N/A services applyFilter N/A self yadis_url N/A self xmldoc None N/A N/A TestCanonicalID N/A N/A unittest TestCase N/A mkTest N/A N/A iname filename expectedID N/A N/A N/A This function builds a method that runs the CanonicalID
        test for the given set of inputs N/A filename N/A datapath filename test N/A N/A self N/A N/A N/A xrds N/A N/A etxrd parseXRDS N/A N/A N/A file filename read N/A N/A N/A self _getCanonicalID iname xrds expectedID N/A N/A test N/A N/A test_delegated N/A mkTest @ootao*test1 delegated-20060809.xrds @!5BAD.2AA.3C72.AF46!0000.0000.3B9A.CA01 N/A test_delegated_r1 N/A mkTest @ootao*test1 delegated-20060809-r1.xrds @!5BAD.2AA.3C72.AF46!0000.0000.3B9A.CA01 N/A test_delegated_r2 N/A mkTest @ootao*test1 delegated-20060809-r2.xrds @!5BAD.2AA.3C72.AF46!0000.0000.3B9A.CA01 N/A test_sometimesprefix N/A mkTest @ootao*test1 sometimesprefix.xrds @!5BAD.2AA.3C72.AF46!0000.0000.3B9A.CA01 N/A test_prefixsometimes N/A mkTest @ootao*test1 prefixsometimes.xrds @!5BAD.2AA.3C72.AF46!0000.0000.3B9A.CA01 N/A test_spoof1 N/A mkTest =keturn*isDrummond spoof1.xrds N/A etxrd XRDSFraud N/A test_spoof2 N/A mkTest =keturn*isDrummond spoof2.xrds N/A etxrd XRDSFraud N/A test_spoof3 N/A mkTest @keturn*is*drummond spoof3.xrds N/A etxrd XRDSFraud N/A test_status222 N/A mkTest =x status222.xrds None N/A test_iri_auth_not_allowed N/A mkTest phreak.example.com delegated-20060809-r2.xrds N/A etxrd XRDSFraud N/A N/A test_iri_auth_not_allowed __doc__ Don't let IRI authorities be canonical for the GCS. _getCanonicalID N/A N/A self iname xrds expectedID N/A N/A N/A N/A isinstance expectedID N/A str unicode N/A type None N/A N/A cid N/A N/A etxrd getCanonicalID iname xrds N/A N/A N/A self failUnlessEqual cid N/A expectedID N/A N/A xri XRI expectedID N/A N/A N/A issubclass expectedID N/A etxrd XRDSError N/A N/A N/A N/A self failUnlessRaises expectedID N/A etxrd getCanonicalID iname xrds N/A N/A N/A N/A self fail N/A Don't know how to test for expected value %r N/A expectedID N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main