Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str Num Str Str NameLoad kwarg body Assign NameStore Dict Str Str Str Str Str Str NameLoad Call NameLoad Str NameLoad NameLoad NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str CompareEq Call AttributeLoad NameLoad attr Num body Delete NameDel FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Lambda arguments args defaults AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr keyword Str
N/A N/A os N/A tempfile N/A unittest cStringIO StringIO trac.config ConfigurationError trac.env Environment trac.test MockRequest trac.tests.compat rmtree trac.util translation DatabaseFileTestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self env_path N/A N/A tempfile mkdtemp prefix trac-tempenv- N/A N/A self db_path N/A N/A N/A os path join N/A self env_path db trac.db N/A tearDown N/A N/A self N/A N/A N/A N/A rmtree N/A self env_path N/A _create_env N/A N/A self N/A N/A N/A env N/A Environment N/A self env_path create True N/A N/A N/A env shutdown N/A _db_query N/A N/A self env N/A N/A N/A N/A N/A env db_query SELECT name FROM system N/A _make_environ N/A N/A self scheme server_name server_port method script_name cookie N/A http example.org 80 GET /trac None kwargs N/A N/A environ N/A wsgi.url_scheme wsgi.input REQUEST_METHOD SERVER_NAME SERVER_PORT SCRIPT_NAME scheme N/A StringIO method server_name server_port script_name N/A cookie N/A N/A N/A environ N/A HTTP_COOKIE cookie N/A N/A N/A environ update kwargs N/A environ N/A test_missing_tracdb N/A N/A self N/A N/A N/A N/A N/A self _create_env N/A N/A N/A os remove N/A self db_path N/A env N/A Environment N/A self env_path N/A N/A N/A N/A N/A self _db_query env N/A N/A N/A self fail ConfigurationError not raised N/A N/A N/A ConfigurationError N/A e N/A N/A N/A N/A self assertIn Database " N/A unicode e N/A N/A N/A self assertIn " not found. N/A unicode e N/A test_no_permissions N/A N/A self N/A N/A N/A N/A N/A self _create_env N/A N/A N/A os chmod N/A self db_path 292 N/A env N/A Environment N/A self env_path N/A N/A N/A N/A N/A self _db_query env N/A N/A N/A self fail ConfigurationError not raised N/A N/A N/A ConfigurationError N/A e N/A N/A N/A N/A self assertIn requires read _and_ write permissions N/A unicode e N/A N/A N/A N/A N/A os name posix N/A N/A N/A os getuid 0 N/A N/A test_no_permissions test_error_with_lazy_translation N/A N/A self N/A N/A N/A N/A N/A self _create_env N/A N/A N/A os remove N/A self db_path N/A env N/A Environment N/A self env_path N/A req N/A MockRequest env authname trac_auth=1234567890 N/A N/A N/A translation make_activable N/A N/A N/A N/A N/A req locale N/A env path N/A N/A N/A N/A N/A N/A N/A self _db_query env N/A N/A N/A self fail ConfigurationError not raised N/A N/A N/A ConfigurationError N/A e N/A N/A message N/A unicode e N/A N/A N/A self assertIn Database " message N/A N/A N/A self assertIn " not found. message N/A N/A N/A N/A translation deactivate N/A N/A suite N/A N/A N/A N/A N/A suite N/A N/A unittest TestSuite N/A N/A N/A suite addTest N/A N/A unittest makeSuite DatabaseFileTestCase N/A suite N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main defaultTest suite