Module ImportFrom alias Import alias Import alias Import alias FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq Call NameLoad NameLoad Num Assert CompareEq Call NameLoad ListComp NameLoad comprehension NameStore NameLoad CompareEq AttributeLoad NameLoad attr Str Num Assert CompareEq Call NameLoad ListComp NameLoad comprehension NameStore NameLoad CompareEq AttributeLoad NameLoad attr Str Num Assert CompareEq Call NameLoad ListComp NameLoad comprehension NameStore NameLoad CompareEq AttributeLoad NameLoad attr Str Num decorator_list AttributeLoad NameLoad attr
N/A __future__ absolute_import N/A httpretty N/A pygerduty N/A textwrap test_get_user N/A N/A N/A N/A N/A N/A N/A httpretty register_uri N/A httpretty GET https://contosso.pagerduty.com/api/v1/users/PIJ90N7 body N/A N/A textwrap dedent             {
              "user": {
                "avatar_url": "https://secure.gravatar.com/avatar/6e1b6fc29a03fc3c13756bd594e314f7.png?d=mm&r=PG",
                "color": "dark-slate-grey",
                "email": "bart@example.com",
                "id": "PIJ90N7",
                "invitation_sent": true,
                "job_title": "Developer",
                "marketing_opt_out": true,
                "name": "Bart Simpson",
                "role": "admin",
                "time_zone": "Eastern Time (US & Canada)",
                "user_url": "/users/PIJ90N7"
              }
            }
             status 200 N/A p N/A N/A pygerduty PagerDuty contosso password N/A user N/A N/A N/A p users show PIJ90N7 N/A N/A N/A user id PIJ90N7 N/A N/A N/A user name Bart Simpson N/A N/A N/A user role admin N/A N/A httpretty activate test_get_user_contact_methods N/A N/A N/A N/A N/A N/A N/A N/A httpretty register_uri N/A httpretty GET https://contosso.pagerduty.com/api/v1/users/PIJ90N7 body N/A N/A textwrap dedent             {
              "user": {
                "avatar_url": "https://secure.gravatar.com/avatar/6e1b6fc29a03fc3c13756bd594e314f7.png?d=mm&r=PG",
                "color": "dark-slate-grey",
                "email": "bart@example.com",
                "id": "PIJ90N7",
                "invitation_sent": true,
                "job_title": "Developer",
                "marketing_opt_out": true,
                "name": "Bart Simpson",
                "role": "admin",
                "time_zone": "Eastern Time (US & Canada)",
                "user_url": "/users/PIJ90N7"
              }
            }
             status 200 N/A N/A N/A httpretty register_uri N/A httpretty GET https://contosso.pagerduty.com/api/v1/users/PIJ90N7/contact_methods body N/A N/A textwrap dedent             {
              "contact_methods": [
                {
                  "address": "bart@example.com",
                  "email": "bart@example.com",
                  "id": "PZMO0JF",
                  "label": "Default",
                  "send_short_email": false,
                  "type": "email",
                  "user_id": "PIJ90N7"
                },
                {
                  "address": "9373249222",
                  "country_code": 1,
                  "id": "PDGR818",
                  "label": "Mobile",
                  "phone_number": "9373249222",
                  "type": "phone",
                  "user_id": "PIJ90N7"
                },
                {
                  "address": "9373249222",
                  "country_code": 1,
                  "enabled": true,
                  "id": "P25E95E",
                  "label": "Mobile",
                  "phone_number": "9373249222",
                  "type": "SMS",
                  "user_id": "PIJ90N7"
                }
              ]
            }
             status 200 N/A p N/A N/A pygerduty PagerDuty contosso password N/A user N/A N/A N/A p users show PIJ90N7 N/A contact_methods N/A c N/A c N/A N/A N/A user contact_methods list N/A N/A N/A len contact_methods 3 N/A N/A N/A len N/A c N/A c contact_methods N/A N/A c type email 1 N/A N/A N/A len N/A c N/A c contact_methods N/A N/A c type phone 1 N/A N/A N/A len N/A c N/A c contact_methods N/A N/A c type SMS 1 N/A N/A httpretty activate