Module Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad Str keyword ListLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword ListLoad AttributeLoad NameLoad attr Dict Str Str Dict Str Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A unittest django.test TestCase django.test.client Client ClientHandler django.core.urlresolvers reverse django.core.cache cache models Chat ClientTests N/A TestCase N/A N/A urls live_support.urls N/A fixtures N/A live_support/fixtures/users.json setUp N/A N/A self N/A N/A N/A N/A test_start_chat N/A N/A self N/A N/A N/A login N/A N/A N/A self client login username test password test N/A N/A N/A N/A self client get N/A reverse get_messages N/A resp N/A N/A N/A self client post N/A reverse start_chat N/A name details Test Name Test Details N/A N/A N/A self assertEqual N/A resp status_code 302 N/A resp2 N/A N/A N/A self client get N/A resp N/A location N/A N/A N/A self assertEqual N/A resp2 status_code 200 N/A N/A N/A self assertTrue N/A N/A N/A N/A resp2 context N/A chat hash_key N/A resp N/A location N/A test_leave_message N/A N/A self N/A N/A N/A N/A N/A cache set admin_active None N/A resp N/A N/A N/A self client post N/A reverse start_chat N/A name details Test Name Test Message N/A N/A N/A self assertEqual N/A resp status_code 200 N/A N/A N/A self assertEqual N/A resp content Thank you for contacting us N/A test_get_messages_prompts_login N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get N/A reverse get_messages N/A N/A N/A self assertEqual N/A resp status_code 302 N/A N/A N/A self assertIn /login/ N/A resp N/A location N/A test_get_messages_with_hash_key_returns_messages N/A N/A self N/A N/A N/A chat N/A N/A N/A Chat objects create name Test Chat details Details N/A N/A N/A N/A chat messages create name N/A chat name message new message text N/A resp N/A N/A N/A self client get N/A reverse client_get_messages args N/A N/A chat hash_key N/A N/A N/A self assertTrue N/A new message text N/A resp content N/A test_get_latest_message N/A N/A self N/A N/A N/A chat N/A N/A N/A Chat objects create name Test Chat details Details N/A message1 N/A N/A N/A chat messages create name N/A chat name message message one N/A message2 N/A N/A N/A chat messages create name N/A chat name message message two N/A url N/A reverse client_get_messages args N/A N/A chat hash_key N/A resp N/A N/A N/A self client get N/A %s?%s=%s N/A url N/A chat id N/A message1 id N/A N/A N/A self assertIn two N/A resp content N/A N/A N/A self assertNotIn one N/A resp content N/A N/A AdminTests N/A TestCase N/A N/A urls live_support.urls N/A fixtures N/A live_support/fixtures/users.json setUp N/A N/A self N/A N/A N/A N/A test_get_all_messages N/A N/A self N/A N/A N/A login N/A N/A N/A self client login username test password test N/A chat N/A N/A N/A Chat objects create name Test Chat details Details N/A N/A N/A N/A chat messages create name N/A chat name message new message text N/A url N/A reverse get_messages N/A resp N/A N/A N/A self client get N/A %s?%s=0 N/A url N/A chat id N/A N/A N/A self assertTrue N/A new message text N/A resp content N/A test_getting_messages_with_invalid_args N/A N/A self N/A N/A N/A login N/A N/A N/A self client login username test password test N/A chat N/A N/A N/A Chat objects create name Test Chat details Details N/A message1 N/A N/A N/A chat messages create name N/A chat name message message one N/A message2 N/A N/A N/A chat messages create name N/A chat name message message two N/A url N/A reverse get_messages N/A resp N/A N/A N/A self client get N/A %s?bad=good&%s=%s N/A url N/A chat id N/A message1 id N/A N/A N/A self assertIn two N/A resp content N/A N/A N/A self assertNotIn one N/A resp content N/A test_send_admin_message N/A N/A self N/A N/A N/A login N/A N/A N/A self client login username test password test N/A chat N/A N/A N/A Chat objects create name Test Chat details Details N/A resp N/A N/A N/A self client post N/A reverse post_message args N/A N/A chat id N/A message admin test message N/A HTTP_X_REQUESTED_WITH XMLHttpRequest N/A N/A N/A self assertIn admin test message N/A resp content N/A N/A