Module ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body TryExcept body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Return Call NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Assert NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assert NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpAdd Str Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad decorator_list
N/A functools wraps zipfile is_zipfile N/A os N/A random N/A sh N/A string N/A unittest bitbucket.tests.private.private AuthenticatedBitbucketTest N/A TEST_REPO_SLUG test_repository_creation skipUnlessHasGit N/A N/A f N/A N/A N/A  This decorator pass the test if git is not found. _decorator N/A N/A N/A N/A N/A N/A N/A N/A N/A sh git version True _out /dev/null N/A N/A f N/A N/A N/A N/A sh CommandNotFound N/A N/A N/A N/A unittest skip Git is not installed N/A N/A wraps f N/A _decorator N/A RepositoryAuthenticatedMethodsTest N/A AuthenticatedBitbucketTest N/A N/A  Testing bitbucket.repository methods. test_all N/A N/A self N/A N/A N/A  Test get all repositories. N/A N/A success result N/A N/A N/A N/A self bb repository all N/A N/A N/A self assertTrue success N/A N/A N/A self assertIsInstance result list N/A test_get N/A N/A self N/A N/A N/A  Test get a repository. N/A N/A success result N/A N/A N/A N/A self bb repository get N/A N/A N/A self assertTrue success N/A N/A N/A self assertIsInstance result dict N/A test_create N/A N/A self N/A N/A N/A  Test repository creation. N/A N/A success result N/A N/A N/A N/A self bb repository create TEST_REPO_SLUG N/A N/A N/A self assertTrue success N/A N/A N/A self assertIsInstance result dict N/A N/A success result N/A N/A N/A N/A self bb repository delete repo_slug TEST_REPO_SLUG N/A success N/A test_update N/A N/A self N/A N/A N/A  Test repository update. N/A test_description Test Description N/A N/A success result N/A N/A N/A N/A self bb repository update description test_description N/A N/A N/A self assertTrue success N/A N/A N/A self assertIsInstance result dict N/A N/A N/A self assertEqual test_description N/A result N/A description N/A test_delete N/A N/A self N/A N/A N/A  Test repository deletion. N/A N/A success result N/A N/A N/A N/A self bb repository create TEST_REPO_SLUG N/A success N/A N/A success result N/A N/A N/A N/A self bb repository delete repo_slug TEST_REPO_SLUG N/A N/A N/A self assertTrue success N/A N/A N/A self assertEqual result N/A N/A success result N/A N/A N/A N/A self bb repository get repo_slug TEST_REPO_SLUG N/A N/A N/A self assertFalse success N/A N/A ArchiveRepositoryAuthenticatedMethodsTest N/A AuthenticatedBitbucketTest N/A N/A 
    Testing bitbucket.repository.archive method, which require
    custom setUp and tearDown methods.

    test_archive require a commit to download the repository.
     setUp N/A N/A self N/A N/A N/A  Clone the test repo locally, then add and push a commit. N/A N/A N/A N/A super ArchiveRepositoryAuthenticatedMethodsTest self setUp N/A repo_origin N/A git@bitbucket.org:%s/%s.git N/A N/A N/A self bb username N/A N/A self bb repo_slug N/A repo_folder N/A N/A N/A os path join /tmp N/A bitbucket- N/A N/A join N/A N/A N/A random choice N/A N/A string digits N/A string letters N/A x N/A range 10 N/A N/A N/A sh mkdir repo_folder N/A N/A N/A sh cd repo_folder N/A N/A self pwd N/A N/A N/A N/A sh pwd strip N/A N/A N/A N/A sh git init N/A N/A N/A N/A sh git remote add origin repo_origin N/A N/A N/A sh touch file N/A N/A N/A N/A sh git add . N/A N/A N/A N/A sh git commit -m "Add empty file." N/A N/A N/A N/A sh git push origin master N/A tearDown N/A N/A self N/A N/A N/A  Delete the git folder. N/A N/A N/A N/A super ArchiveRepositoryAuthenticatedMethodsTest self tearDown N/A N/A N/A sh rm -rf N/A self pwd N/A test_archive N/A N/A self N/A N/A N/A  Test repository download as archive. N/A N/A success archive_path N/A N/A N/A N/A self bb repository archive N/A N/A N/A self assertTrue success N/A N/A N/A self assertTrue N/A N/A N/A os path exists archive_path N/A N/A N/A self assertTrue N/A is_zipfile archive_path N/A N/A N/A os unlink archive_path N/A skipUnlessHasGit N/A