Module Expr Str Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias ImportFrom alias ImportFrom alias alias alias Assign NameStore Call NameLoad Call NameLoad FunctionDef arguments args NameParam NameParam defaults kwarg body ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr BinOpAdd NameLoad Str Assign AttributeStore NameLoad attr BinOpAdd NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Num Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad BinOpBitAnd AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad BinOpBitAnd AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad TupleLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr decorator_list decorator_list Return NameLoad decorator_list ClassDef bases Call NameLoad NameLoad Str keyword Str body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases Call NameLoad NameLoad NameLoad keyword NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases Call NameLoad NameLoad Str keyword Str body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Str Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad TupleLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad BinOpBitAnd AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad BinOpBitAnd AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Num Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad keyword AttributeLoad Call AttributeLoad NameLoad attr attr Call NameLoad keyword AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Tests for certification logic in ``flocker.ca._ca``
 N/A datetime N/A os uuid uuid4 UUID Crypto.Util asn1 OpenSSL crypto twisted.python.filepath FilePath N/A RootCredential ControlCredential NodeCredential UserCredential PathError EXPIRY_20_YEARS AUTHORITY_CERTIFICATE_FILENAME AUTHORITY_KEY_FILENAME testtools assert_has_extension testtools not_root skip_on_broken_permissions TestCase N/A NODE_UUID N/A str N/A uuid4 make_credential_tests N/A N/A cls expected_file_name N/A kwargs N/A CredentialTests N/A TestCase N/A N/A 
        Base test case for credential tests.
         setUp N/A N/A self N/A N/A N/A N/A N/A N/A super CredentialTests self setUp N/A N/A self start_date N/A N/A N/A datetime datetime utcnow N/A N/A self expiry_date N/A N/A self start_date N/A N/A datetime timedelta seconds EXPIRY_20_YEARS N/A N/A self cert_file_name N/A expected_file_name .crt N/A N/A self key_file_name N/A expected_file_name .key N/A N/A self path N/A FilePath N/A N/A self mktemp N/A N/A N/A N/A self path makedirs N/A N/A self ca N/A N/A RootCredential initialize N/A self path mycluster begin N/A self start_date N/A N/A self credential N/A N/A cls initialize N/A self path N/A self ca begin N/A self start_date kwargs N/A N/A k v N/A N/A kwargs iteritems N/A N/A N/A setattr self k v N/A test_certificate_matches_public_key N/A N/A self N/A N/A N/A 
            A certificate's public key matches the public key it is
            meant to be paired with.
             N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A N/A self credential credential keypair keypair matches N/A N/A N/A N/A N/A self credential credential certificate getPublicKey N/A test_certificate_matches_private_key N/A N/A self N/A N/A N/A 
            A certificate matches the private key it is meant to
            be paired with.
             N/A priv N/A N/A N/A N/A N/A self credential credential keypair keypair original N/A pub N/A N/A N/A self credential credential certificate N/A pub N/A N/A N/A pub getPublicKey original N/A pub_asn1 N/A N/A crypto dump_privatekey N/A crypto FILETYPE_ASN1 pub N/A priv_asn1 N/A N/A crypto dump_privatekey N/A crypto FILETYPE_ASN1 priv N/A pub_der N/A N/A asn1 DerSequence N/A N/A N/A pub_der decode pub_asn1 N/A priv_der N/A N/A asn1 DerSequence N/A N/A N/A priv_der decode priv_asn1 N/A pub_modulus N/A pub_der N/A 1 N/A priv_modulus N/A priv_der N/A 1 N/A N/A N/A self assertEqual pub_modulus priv_modulus N/A test_written_keypair_reloads N/A N/A self N/A N/A N/A 
            A keypair written by ``UserCredential.initialize`` can be
            successfully reloaded in to an identical ``ControlCertificate``
            instance.
             N/A N/A N/A self assertEqual N/A self credential N/A N/A cls from_path N/A self path kwargs N/A test_create_error_on_non_existent_path N/A N/A self N/A N/A N/A 
            A ``PathError`` is raised if the path given to
            ``UserCredential.initialize`` does not exist.
             N/A path N/A FilePath N/A N/A self mktemp N/A e N/A N/A self assertRaises PathError N/A cls initialize path N/A self ca kwargs N/A expected N/A N/A Unable to write certificate file. No such file or directory {path} format path N/A N/A N/A path child N/A self cert_file_name path N/A N/A N/A self assertEqual N/A str e expected N/A test_load_error_on_non_existent_path N/A N/A self N/A N/A N/A 
            A ``PathError`` is raised if the path given to
            ``UserCredential.from_path`` does not exist.
             N/A path N/A FilePath N/A N/A self mktemp N/A e N/A N/A self assertRaises PathError N/A cls from_path path kwargs N/A expected N/A N/A Certificate file could not be opened. No such file or directory {path} format path N/A N/A N/A path child N/A self cert_file_name path N/A N/A N/A self assertEqual N/A str e expected N/A test_load_error_on_non_existent_certificate_file N/A N/A self N/A N/A N/A 
            A ``PathError`` is raised if the certificate file path given to
            ``UserCredential.from_path`` does not exist.
             N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A e N/A N/A self assertRaises PathError N/A cls from_path path kwargs N/A expected N/A N/A Certificate file could not be opened. No such file or directory {path} format path N/A N/A N/A path child N/A self cert_file_name path N/A N/A N/A self assertEqual N/A str e expected N/A test_load_error_on_non_existent_key_file N/A N/A self N/A N/A N/A 
            A ``PathError`` is raised if the key file path given to
            ``UserCredential.from_path`` does not exist.
             N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A crt_path N/A N/A path child N/A self cert_file_name N/A crt_file N/A N/A crt_path open w N/A N/A N/A crt_file write N/A N/A N/A N/A N/A self credential credential certificate dumpPEM N/A N/A N/A crt_file close N/A e N/A N/A self assertRaises PathError N/A cls from_path path kwargs N/A expected N/A N/A Private key file could not be opened. No such file or directory {path} format path N/A N/A N/A path child N/A self key_file_name path N/A N/A N/A self assertEqual N/A str e expected N/A test_load_error_on_unreadable_certificate_file N/A N/A self N/A N/A N/A 
            A ``PathError`` is raised if the certificate file path given to
            ``UserCredential.from_path`` cannot be opened for reading.
             N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A crt_path N/A N/A path child N/A self cert_file_name N/A crt_file N/A N/A crt_path open w N/A N/A N/A crt_file write dummy N/A N/A N/A crt_file close N/A N/A N/A crt_path chmod 64 N/A key_path N/A N/A path child N/A self key_file_name N/A key_file N/A N/A key_path open w N/A N/A N/A key_file write dummy N/A N/A N/A key_file close N/A N/A N/A key_path chmod 64 N/A e N/A N/A self assertRaises PathError N/A cls from_path path kwargs N/A expected N/A N/A Certificate file could not be opened. Permission denied {path} format path N/A crt_path path N/A N/A N/A self assertEqual N/A str e expected N/A not_root skip_on_broken_permissions test_load_error_on_unreadable_key_file N/A N/A self N/A N/A N/A 
            A ``PathError`` is raised if the key file path given to
            ``UserCredential.from_path`` cannot be opened for reading.
             N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A crt_path N/A N/A path child N/A self cert_file_name N/A crt_file N/A N/A crt_path open w N/A N/A N/A crt_file write N/A N/A N/A N/A N/A self credential credential certificate dumpPEM N/A N/A N/A crt_file close N/A key_path N/A N/A path child N/A self key_file_name N/A key_file N/A N/A key_path open w N/A N/A N/A key_file write dummy N/A N/A N/A key_file close N/A N/A N/A key_path chmod 64 N/A e N/A N/A self assertRaises PathError N/A cls from_path path kwargs N/A expected N/A N/A Private key file could not be opened. Permission denied {path} format path N/A key_path path N/A N/A N/A self assertEqual N/A str e expected N/A not_root skip_on_broken_permissions test_certificate_ou_matches_ca N/A N/A self N/A N/A N/A 
            A certificate written by ``UserCredential.initialize`` has the
            issuing authority's organizational unit as its organizational
            unit name.
             N/A cert N/A N/A N/A N/A self credential credential certificate original N/A issuer N/A N/A cert get_issuer N/A subject N/A N/A cert get_subject N/A N/A N/A self assertEqual N/A issuer OU N/A subject OU N/A test_certificate_is_signed_by_ca N/A N/A self N/A N/A N/A 
            A certificate written by ``UserCredential.initialize`` is signed by
            the certificate authority.
             N/A cert N/A N/A N/A N/A self credential credential certificate original N/A issuer N/A N/A cert get_issuer N/A N/A N/A self assertEqual N/A issuer CN N/A N/A N/A N/A N/A N/A self ca credential certificate getSubject CN N/A test_certificate_expiration N/A N/A self N/A N/A N/A 
            A certificate written by ``UserCredential.initialize`` has an
            expiry date 20 years from the date of signing.
             N/A cert N/A N/A N/A N/A self credential credential certificate original N/A date_str N/A N/A cert get_notAfter N/A expected_expiry N/A N/A N/A self expiry_date strftime %Y%m%d%H%M%SZ N/A N/A N/A self assertEqual date_str expected_expiry N/A test_certificate_is_rsa_4096_sha_256 N/A N/A self N/A N/A N/A 
            A certificate written by ``UserCredential.initialize`` is an RSA
            4096 bit, SHA-256 format.
             N/A cert N/A N/A N/A N/A self credential credential certificate original N/A key N/A N/A N/A self credential credential certificate N/A key N/A N/A N/A key getPublicKey original N/A N/A N/A self assertEqual N/A N/A crypto TYPE_RSA 4096 sha256WithRSAEncryption N/A N/A N/A key type N/A N/A key bits N/A N/A cert get_signature_algorithm N/A test_keypair_correct_umask N/A N/A self N/A N/A N/A 
            A keypair file written by ``NodeCredential.initialize`` has
            the correct permissions (0600).
             N/A key_path N/A N/A N/A self path child N/A self key_file_name N/A st N/A N/A os stat N/A key_path path N/A N/A N/A self assertEqual 0600 N/A oct N/A N/A st st_mode 511 N/A test_certificate_correct_permission N/A N/A self N/A N/A N/A 
            A certificate file written by ``NodeCredential.initialize`` has
            the correct access mode set (0600).
             N/A cert_path N/A N/A N/A self path child N/A self cert_file_name N/A st N/A N/A os stat N/A cert_path path N/A N/A N/A self assertEqual 0600 N/A oct N/A N/A st st_mode 511 N/A test_written_keypair_exists N/A N/A self N/A N/A N/A 
            ``NodeCredential.initialize`` writes a PEM file to the
            specified path.
             N/A N/A N/A self assertEqual N/A True True N/A N/A N/A N/A N/A N/A self path child N/A self cert_file_name exists N/A N/A N/A N/A N/A self path child N/A self key_file_name exists N/A N/A N/A CredentialTests N/A UserCredentialTests N/A N/A make_credential_tests UserCredential alice username alice N/A N/A 
    Tests for ``flocker.ca._ca.UserCredential``.
     test_certificate_subject_username N/A N/A self N/A N/A N/A 
        A certificate written by ``UserCredential.initialize`` has the
        subject common name "user-{user}" where {user} is the username
        supplied during the certificate's creation.
         N/A cert N/A N/A N/A N/A self credential credential certificate original N/A subject N/A N/A cert get_subject N/A N/A N/A self assertEqual N/A subject CN N/A N/A user-{user} format user N/A N/A self credential username N/A test_extendedKeyUsage N/A N/A self N/A N/A N/A 
        The generated certificate has extendedKeyUsage set to "clientAuth".
         N/A N/A assert_has_extension self N/A N/A self credential credential extendedKeyUsage clientAuth N/A test_from_files N/A N/A self N/A N/A N/A 
        A certificate and keypair written by ``UserCredential.initialize``
        can be loaded back from the individual files, with the username
        extracted from the subject common name.
         N/A certificate_path N/A N/A N/A N/A N/A self credential credential path child alice.crt N/A key_path N/A N/A N/A N/A N/A self credential credential path child alice.key N/A user_credential N/A N/A UserCredential from_files certificate_path key_path N/A N/A N/A self assertEqual alice N/A user_credential username N/A test_certificate_ou_cluster_uuid N/A N/A self N/A N/A N/A 
        A certificate written by ``UserCredential.initialize`` has the
        organizational unit name exposed as the ``cluster_uuid``
        attribute.
         N/A cert N/A N/A N/A N/A self credential credential certificate original N/A subject N/A N/A cert get_subject N/A N/A N/A self assertEqual N/A UUID hex N/A subject OU N/A N/A self credential cluster_uuid N/A N/A NodeCredentialTests N/A N/A make_credential_tests NodeCredential NODE_UUID uuid NODE_UUID N/A N/A 
    Tests for ``flocker.ca._ca.NodeCredential``.
     test_certificate_common_name_node_uuid N/A N/A self N/A N/A N/A 
        A certificate written by ``NodeCredential.initialize`` has the
        subject common name "node-{uuid}" where {uuid} is the UUID
        generated during the certificate's creation.
         N/A cert N/A N/A N/A N/A self credential credential certificate original N/A subject N/A N/A cert get_subject N/A N/A N/A self assertEqual N/A subject CN N/A N/A node-{uuid} format uuid N/A N/A self credential uuid N/A test_certificate_ou_cluster_uuid N/A N/A self N/A N/A N/A 
        A certificate written by ``NodeCredential.initialize`` has the
        organizational unit name exposed as the ``cluster_uuid``
        attribute.
         N/A cert N/A N/A N/A N/A self credential credential certificate original N/A subject N/A N/A cert get_subject N/A N/A N/A self assertEqual N/A UUID hex N/A subject OU N/A N/A self credential cluster_uuid N/A N/A ControlCredentialTests N/A N/A make_credential_tests ControlCredential control-control.example.com hostname control.example.com N/A N/A 
    Tests for ``flocker.ca._ca.ControlCredential``.
     test_certificate_subject_control_service N/A N/A self N/A N/A N/A 
        A certificate written by ``ControlCredential.initialize`` has the
        subject common name "control-service"
         N/A cert N/A N/A N/A N/A self credential credential certificate original N/A subject N/A N/A cert get_subject N/A N/A N/A self assertEqual N/A subject CN control-service N/A test_subjectAltName_dns N/A N/A self N/A N/A N/A 
        If given a domain name as hostname, the generated certificate has a
        subjectAltName containing the given hostname as a DNS record.
         N/A N/A assert_has_extension self N/A N/A self credential credential subjectAltName DNS:control-service,DNS:control.example.com N/A test_subjectAltName_ipv4 N/A N/A self N/A N/A N/A 
        If given a IPv4 address as the hostname, the generated certificate has
        a subjectAltName containing with a IP record.
         N/A credential N/A N/A ControlCredential initialize N/A self path N/A self ca begin N/A self start_date hostname 127.0.0.1 N/A N/A assert_has_extension self N/A credential credential subjectAltName DNS:control-service,IP:127.0.0.1 N/A N/A RootCredentialTests N/A TestCase N/A N/A 
    Tests for ``flocker.ca._ca.RootCredential``.
     test_written_keypair_exists N/A N/A self N/A N/A N/A 
        ``RootCredential.initialize`` writes a PEM file to the
        specified path.
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A N/A N/A RootCredential initialize path mycluster N/A N/A N/A self assertEqual N/A True True N/A N/A N/A N/A N/A path child AUTHORITY_CERTIFICATE_FILENAME exists N/A N/A N/A N/A path child AUTHORITY_KEY_FILENAME exists N/A test_certificate_matches_public_key N/A N/A self N/A N/A N/A 
        A certificate's public key matches the public key it is
        meant to be paired with.
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A ca N/A N/A RootCredential initialize path mycluster N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A ca credential keypair keypair matches N/A N/A N/A N/A ca credential certificate getPublicKey N/A test_certificate_matches_private_key N/A N/A self N/A N/A N/A 
        A certificate matches the private key it is meant to
        be paired with.
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A ca N/A N/A RootCredential initialize path mycluster N/A priv N/A N/A N/A N/A ca credential keypair keypair original N/A pub N/A N/A N/A N/A N/A ca credential certificate getPublicKey original N/A pub_asn1 N/A N/A crypto dump_privatekey N/A crypto FILETYPE_ASN1 pub N/A priv_asn1 N/A N/A crypto dump_privatekey N/A crypto FILETYPE_ASN1 priv N/A pub_der N/A N/A asn1 DerSequence N/A N/A N/A pub_der decode pub_asn1 N/A priv_der N/A N/A asn1 DerSequence N/A N/A N/A priv_der decode priv_asn1 N/A pub_modulus N/A pub_der N/A 1 N/A priv_modulus N/A priv_der N/A 1 N/A N/A N/A self assertEqual pub_modulus priv_modulus N/A test_written_keypair_reloads N/A N/A self N/A N/A N/A 
        A keypair written by ``RootCredential.initialize`` can be
        successfully reloaded in to an identical ``RootCredential``
        instance.
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A ca1 N/A N/A RootCredential initialize path mycluster N/A ca2 N/A N/A RootCredential from_path path N/A N/A N/A self assertEqual ca1 ca2 N/A test_keypair_correct_umask N/A N/A self N/A N/A N/A 
        A keypair file written by ``RootCredential.initialize`` has
        the correct permissions (0600).
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A N/A N/A RootCredential initialize path mycluster N/A keyPath N/A N/A path child AUTHORITY_KEY_FILENAME N/A st N/A N/A os stat N/A keyPath path N/A N/A N/A self assertEqual 0600 N/A oct N/A N/A st st_mode 511 N/A test_certificate_correct_permission N/A N/A self N/A N/A N/A 
        A certificate file written by ``RootCredential.initialize`` has
        the correct access mode set (0600).
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A N/A N/A RootCredential initialize path mycluster N/A keyPath N/A N/A path child AUTHORITY_CERTIFICATE_FILENAME N/A st N/A N/A os stat N/A keyPath path N/A N/A N/A self assertEqual 0600 N/A oct N/A N/A st st_mode 511 N/A test_create_error_on_non_existent_path N/A N/A self N/A N/A N/A 
        A ``PathError`` is raised if the path given to
        ``RootCredential.initialize`` does not exist.
         N/A path N/A FilePath N/A N/A self mktemp N/A e N/A N/A self assertRaises PathError N/A RootCredential initialize path mycluster N/A expected N/A N/A Unable to write certificate file. No such file or directory {path} format path N/A N/A N/A path child AUTHORITY_CERTIFICATE_FILENAME path N/A N/A N/A self assertEqual N/A str e expected N/A test_load_error_on_non_existent_path N/A N/A self N/A N/A N/A 
        A ``PathError`` is raised if the path given to
        ``RootCredential.from_path`` does not exist.
         N/A path N/A FilePath N/A N/A self mktemp N/A e N/A N/A self assertRaises PathError N/A RootCredential from_path path N/A expected N/A N/A Unable to load certificate authority file. Please run `flocker-ca initialize` to generate a new certificate authority. No such file or directory {path} format path N/A N/A N/A path child AUTHORITY_CERTIFICATE_FILENAME path N/A N/A N/A self assertEqual N/A str e expected N/A test_load_error_on_non_existent_certificate_file N/A N/A self N/A N/A N/A 
        A ``PathError`` is raised if the certificate file path given to
        ``RootCredential.from_path`` does not exist.
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A e N/A N/A self assertRaises PathError N/A RootCredential from_path path N/A expected N/A N/A Unable to load certificate authority file. Please run `flocker-ca initialize` to generate a new certificate authority. No such file or directory {path} format path N/A N/A N/A path child AUTHORITY_CERTIFICATE_FILENAME path N/A N/A N/A self assertEqual N/A str e expected N/A test_load_error_on_non_existent_key_file N/A N/A self N/A N/A N/A 
        A ``PathError`` is raised if the key file path given to
        ``RootCredential.from_path`` does not exist.
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A temp_path N/A FilePath N/A N/A self mktemp N/A N/A N/A temp_path makedirs N/A ca N/A N/A RootCredential initialize temp_path mycluster N/A crt_path N/A N/A path child AUTHORITY_CERTIFICATE_FILENAME N/A crt_file N/A N/A crt_path open w N/A N/A N/A crt_file write N/A N/A N/A N/A ca credential certificate dumpPEM N/A N/A N/A crt_file close N/A e N/A N/A self assertRaises PathError N/A RootCredential from_path path N/A expected N/A N/A Unable to load certificate authority file. Please run `flocker-ca initialize` to generate a new certificate authority. No such file or directory {path} format path N/A N/A N/A path child AUTHORITY_KEY_FILENAME path N/A N/A N/A self assertEqual N/A str e expected N/A test_load_error_on_unreadable_certificate_file N/A N/A self N/A N/A N/A 
        A ``PathError`` is raised if the certificate file path given to
        ``RootCredential.from_path`` cannot be opened for reading.
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A temp_path N/A FilePath N/A N/A self mktemp N/A N/A N/A temp_path makedirs N/A ca N/A N/A RootCredential initialize temp_path mycluster N/A crt_path N/A N/A path child AUTHORITY_CERTIFICATE_FILENAME N/A crt_file N/A N/A crt_path open w N/A N/A N/A crt_file write N/A N/A N/A N/A ca credential certificate dumpPEM N/A N/A N/A crt_file close N/A N/A N/A crt_path chmod 64 N/A key_path N/A N/A path child AUTHORITY_KEY_FILENAME N/A key_file N/A N/A key_path open w N/A N/A N/A key_file write dummy N/A N/A N/A key_file close N/A N/A N/A key_path chmod 64 N/A e N/A N/A self assertRaises PathError N/A RootCredential from_path path N/A expected N/A N/A Unable to load certificate authority file. Permission denied {path} format path N/A crt_path path N/A N/A N/A self assertEqual N/A str e expected N/A not_root skip_on_broken_permissions test_load_error_on_unreadable_key_file N/A N/A self N/A N/A N/A 
        A ``PathError`` is raised if the key file path given to
        ``RootCredential.from_path`` cannot be opened for reading.
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A temp_path N/A FilePath N/A N/A self mktemp N/A N/A N/A temp_path makedirs N/A ca N/A N/A RootCredential initialize temp_path mycluster N/A crt_path N/A N/A path child AUTHORITY_CERTIFICATE_FILENAME N/A crt_file N/A N/A crt_path open w N/A N/A N/A crt_file write N/A N/A N/A N/A ca credential certificate dumpPEM N/A N/A N/A crt_file close N/A key_path N/A N/A path child AUTHORITY_KEY_FILENAME N/A key_file N/A N/A key_path open w N/A N/A N/A key_file write dummy N/A N/A N/A key_file close N/A N/A N/A key_path chmod 64 N/A e N/A N/A self assertRaises PathError N/A RootCredential from_path path N/A expected N/A N/A Unable to load certificate authority file. Permission denied {path} format path N/A key_path path N/A N/A N/A self assertEqual N/A str e expected N/A not_root skip_on_broken_permissions test_certificate_is_self_signed N/A N/A self N/A N/A N/A 
        A certificate written by ``RootCredential.initialize`` is a
        self-signed certificate.
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A ca N/A N/A RootCredential initialize path mycluster N/A cert N/A N/A N/A ca credential certificate original N/A issuer N/A N/A N/A N/A cert get_issuer get_components N/A subject N/A N/A N/A N/A cert get_subject get_components N/A N/A N/A self assertEqual issuer subject N/A test_certificate_expiration N/A N/A self N/A N/A N/A 
        A certificate written by ``RootCredential.initialize`` has an expiry
        date 20 years from the date of signing.

        XXX: This test is prone to intermittent failure depending on the time
        of day it is run. Fixed in
        https://github.com/ClusterHQ/flocker/pull/1339
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A start_date N/A N/A N/A datetime datetime utcnow N/A expected_expiry N/A start_date N/A N/A datetime timedelta seconds EXPIRY_20_YEARS N/A expected_expiry N/A N/A expected_expiry strftime %Y%m%d%H%M%SZ N/A ca N/A N/A RootCredential initialize path mycluster begin start_date N/A cert N/A N/A N/A ca credential certificate original N/A date_str N/A N/A cert get_notAfter N/A N/A N/A self assertEqual date_str expected_expiry N/A test_certificate_is_rsa_4096_sha_256 N/A N/A self N/A N/A N/A 
        A certificate written by ``RootCredential.initialize`` is an RSA
        4096 bit, SHA-256 format.
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A ca N/A N/A RootCredential initialize path mycluster N/A cert N/A N/A N/A ca credential certificate original N/A key N/A N/A N/A N/A N/A ca credential certificate getPublicKey original N/A N/A N/A self assertEqual N/A N/A crypto TYPE_RSA 4096 sha256WithRSAEncryption N/A N/A N/A key type N/A N/A key bits N/A N/A cert get_signature_algorithm N/A test_cluster_uuid N/A N/A self N/A N/A N/A 
        Each certificate created by ``RootCredential.initialize`` has a unique
        cluster UUID, stored in the distinguished name organizational unit
        name.
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A ca N/A N/A RootCredential initialize path mycluster N/A cert N/A N/A ca credential certificate N/A path2 N/A FilePath N/A N/A self mktemp N/A N/A N/A path2 makedirs N/A ca2 N/A N/A RootCredential initialize path2 mycluster2 N/A cert2 N/A N/A ca2 credential certificate N/A N/A N/A self assertNotEqual N/A UUID hex N/A N/A N/A cert getSubject OU N/A UUID hex N/A N/A N/A cert2 getSubject OU N/A test_organizational_unit N/A N/A self N/A N/A N/A 
        ``RootCredential.organizational_unit`` is its organizational unit.
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A N/A N/A RootCredential initialize path mycluster N/A ca N/A N/A RootCredential from_path path N/A N/A N/A self assertEqual N/A ca organizational_unit N/A N/A N/A N/A N/A ca credential certificate getSubject OU N/A test_overridden_cluster_id N/A N/A self N/A N/A N/A 
        If a ``cluster_id`` is passed to ``RootCredential.initialize``, it is
        used as the value for the generated certificate's *organizational unit*
        field.
         N/A path N/A FilePath N/A N/A self mktemp N/A N/A N/A path makedirs N/A cluster_id N/A UUID aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa N/A N/A N/A RootCredential initialize path overridecluster cluster_id cluster_id N/A ca N/A N/A RootCredential from_path path N/A N/A N/A self assertEqual cluster_id N/A UUID N/A ca organizational_unit N/A N/A