Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Dict Str Dict Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign SubscriptStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Index Str Str Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign SubscriptStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Index Str NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list NameLoad decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str decorator_list Call NameLoad Str decorator_list
N/A N/A unittest mock patch drupan.site Site drupan.config Config drupan.deployment.s3cf Deploy S3HostMissingException guess_mime_type TestS3cf N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self site N/A Site N/A N/A self config N/A Config N/A cfg N/A options N/A s3cf N/A bucket md5path redirects site_url skip_upload aws_access_key aws_secret_key cloudfront_id asdf asdf asdf asdf asdf asdf asdf asdf N/A N/A N/A N/A self config from_dict cfg N/A test_init_missing_bucket N/A N/A self N/A N/A N/A 
        should raise an exception if there is a dot in the bucket name and not
        s3_host specified
         N/A N/A N/A N/A N/A self config options N/A s3cf N/A bucket foo.bar N/A N/A N/A self assertRaises S3HostMissingException Deploy N/A self site N/A self config N/A N/A N/A N/A N/A self config options N/A s3cf N/A s3_host foo N/A N/A Deploy N/A self site N/A self config N/A test_guess_mime_type N/A N/A self N/A N/A N/A should guess the correct mime type N/A N/A N/A self assertEqual N/A guess_mime_type foo binary/octet-stream N/A N/A N/A self assertEqual N/A guess_mime_type foo.jpg image/jpeg N/A N/A N/A self assertEqual N/A guess_mime_type foo.png image/png N/A N/A N/A self assertEqual N/A guess_mime_type foo.html text/html N/A N/A N/A self assertEqual N/A guess_mime_type foo.css text/css N/A test_redirects N/A N/A self N/A N/A N/A should always get the correct redirects N/A deploy N/A Deploy N/A self site N/A self config N/A N/A N/A self assertEqual N/A deploy redirects asdf N/A N/A N/A self config redirects 1234 N/A N/A N/A N/A N/A self config options N/A s3cf N/A redirects None N/A deploy N/A Deploy N/A self site N/A self config N/A N/A N/A self assertEqual N/A deploy redirects 1234 N/A test_redirect_exists N/A N/A self N/A N/A N/A should return True if a redirect exists, False if not BucketMock N/A object N/A get_key N/A N/A cls redirect N/A N/A N/A redirect N/A classmethod N/A N/A deploy N/A Deploy N/A self site N/A self config N/A N/A deploy bucket N/A BucketMock N/A N/A N/A self assertTrue N/A N/A deploy redirect_exists True N/A N/A N/A self assertFalse N/A N/A deploy redirect_exists False N/A test_upload_assets N/A N/A self mock N/A N/A N/A should only add one asset to the upload dictionary N/A deploy N/A Deploy N/A self site N/A self config N/A N/A N/A N/A deploy site assets N/A foo foo N/A N/A N/A N/A deploy site assets N/A _bar bar N/A N/A N/A deploy upload_assets N/A N/A N/A mock assert_called_once_with foo foo N/A N/A patch drupan.deployment.s3cf.Deploy.upload N/A