Module ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr CompareIn Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A django.conf settings balancer.routers RandomRouter N/A BalancerTestCase RandomRouterTestCase N/A BalancerTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super RandomRouterTestCase self setUp N/A N/A self router N/A RandomRouter N/A test_random_db_selection N/A N/A self N/A N/A N/A Simple test to make sure that random database selection works. N/A i N/A range 10 N/A N/A N/A N/A self assertTrue N/A N/A N/A N/A self router get_random_db N/A N/A N/A settings DATABASE_POOL keys The database selected is not in the pool. N/A test_relations N/A N/A self N/A N/A N/A Relations should only be allowed for databases in the pool. N/A N/A N/A N/A self obj1 _state db default N/A N/A N/A N/A self obj2 _state db other N/A N/A N/A self assertTrue N/A N/A N/A self router allow_relation N/A self obj1 N/A self obj2 N/A N/A N/A N/A self obj1 _state db other N/A N/A N/A N/A self obj2 _state db utility N/A N/A N/A self assertFalse N/A N/A N/A self router allow_relation N/A self obj1 N/A self obj2 N/A N/A