Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str 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 AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr BinOpSub Call NameLoad Call NameLoad keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr BinOpAdd Call NameLoad Call NameLoad keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list Call AttributeLoad NameLoad attr NameLoad Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr BinOpAdd Call NameLoad Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad keyword NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A Tests for accounts.forms. datetime timedelta datetime django.contrib.auth get_user_model django.core.exceptions ValidationError django.test TestCase django.test.utils override_settings django.utils.timezone now mock patch model_mommy mommy open_connect.accounts forms open_connect.accounts.models Invite open_connect.connectmessages.models Thread open_connect.connectmessages.tests ConnectMessageTestCase open_connect.connect_core.tests.test_utils_mixins TEST_HTML N/A User N/A get_user_model UserFormTest N/A ConnectMessageTestCase N/A N/A Tests for UserForm. test_form_cleans_html N/A N/A self mock N/A N/A N/A Test that text in form is cleaned N/A form N/A N/A forms UserForm N/A biography TEST_HTML instance N/A self user1 N/A N/A N/A form is_valid N/A N/A N/A mock assert_called_once_with TEST_HTML N/A N/A N/A patch object N/A forms SanitizeHTMLMixin sanitize_html N/A UserAdminFormTest N/A TestCase N/A N/A Tests for UserAdminForm test_init N/A N/A self N/A N/A N/A Test the __init__() method in UserAdminForm N/A N/A BanUserFormTest N/A TestCase N/A N/A Tests for BanUserForm. setUp N/A N/A self N/A N/A N/A Setup the test N/A N/A N/A N/A super BanUserFormTest self setUp N/A N/A self group1 N/A N/A mommy make groups.Group N/A N/A self normal_user N/A N/A mommy make accounts.User N/A N/A N/A N/A self normal_user add_to_group N/A N/A self group1 pk N/A N/A self banned_user N/A N/A mommy make accounts.User N/A N/A N/A N/A self banned_user add_to_group N/A N/A self group1 pk N/A thread N/A N/A mommy make connectmessages.Thread group N/A self group1 N/A N/A self message1 N/A N/A mommy make connectmessages.Message sender N/A self banned_user thread thread N/A N/A N/A self message1 created_at N/A N/A now N/A timedelta hours 3 N/A N/A N/A N/A self message1 save N/A N/A self message2 N/A N/A mommy make connectmessages.Message sender N/A self normal_user thread thread N/A N/A self thread N/A N/A N/A Thread objects get pk N/A thread pk N/A test_save_first_message_sender_is_banned_user N/A N/A self N/A N/A N/A If the first_message is sent by the banned user, just ban them. N/A N/A N/A self assertEqual N/A N/A self thread first_message N/A self message1 N/A N/A N/A self assertEqual N/A N/A self thread latest_message N/A self message2 N/A N/A N/A self assertFalse N/A N/A self banned_user is_banned N/A form N/A N/A forms BanUserForm N/A user confirm N/A N/A self banned_user pk True N/A N/A N/A self assertTrue N/A N/A form is_valid N/A N/A N/A form save N/A thread N/A N/A N/A Thread objects get pk N/A N/A self thread pk N/A N/A N/A self assertEqual N/A thread latest_message N/A self message2 N/A user N/A N/A N/A User objects get pk N/A N/A self banned_user pk N/A N/A N/A self assertTrue N/A user is_banned N/A test_save_latest_message_sender_is_banned_user N/A N/A self N/A N/A N/A Latest message sent by banned user but not started by them.auth

        This should cause the user to be banned and the latest_message to be
        set to the most recent message not sent by the banned user.
         N/A N/A N/A self message1 sender N/A self normal_user N/A N/A N/A N/A self message1 save N/A N/A N/A self message2 sender N/A self normal_user N/A N/A N/A self message2 created_at N/A N/A now N/A timedelta seconds 10 N/A N/A N/A N/A self message2 save N/A N/A N/A mommy make connectmessages.Message thread N/A self thread sender N/A self banned_user N/A message4 N/A N/A mommy make connectmessages.Message thread N/A self thread sender N/A self banned_user N/A thread N/A N/A N/A Thread objects get pk N/A N/A self thread pk N/A N/A N/A self assertEqual N/A thread first_message N/A self message1 N/A N/A N/A self assertEqual N/A thread latest_message message4 N/A N/A N/A self assertFalse N/A N/A self banned_user is_banned N/A form N/A N/A forms BanUserForm N/A user confirm N/A N/A self banned_user pk True N/A N/A N/A self assertTrue N/A N/A form is_valid N/A N/A N/A form save N/A user N/A N/A N/A User objects get pk N/A N/A self banned_user pk N/A N/A N/A self assertTrue N/A user is_banned N/A thread N/A N/A N/A Thread objects get pk N/A N/A self thread pk N/A N/A N/A self assertEqual N/A thread latest_message N/A self message2 N/A test_save_confirm_is_true_user_gets_banned N/A N/A self N/A N/A N/A If confirm is True, ban the user. N/A N/A N/A self assertFalse N/A N/A self banned_user is_banned N/A form N/A N/A forms BanUserForm N/A user confirm N/A N/A self banned_user pk True N/A N/A N/A self assertTrue N/A N/A form is_valid N/A N/A N/A form save N/A user N/A N/A N/A User objects get pk N/A N/A self banned_user pk N/A N/A N/A self assertTrue N/A user is_banned N/A test_save_confirm_is_false_user_does_not_get_banned N/A N/A self N/A N/A N/A If confirm is False, don't ban the user. N/A N/A N/A self assertFalse N/A N/A self banned_user is_banned N/A form N/A N/A forms BanUserForm N/A user confirm N/A N/A self banned_user pk False N/A N/A N/A self assertTrue N/A N/A form is_valid N/A N/A N/A form save N/A user N/A N/A N/A User objects get pk N/A N/A self banned_user pk N/A N/A N/A self assertFalse N/A user is_banned N/A test_save_confirm_is_false_threads_not_updated N/A N/A self mock_thread N/A N/A N/A Thread should not be updated is confirm is False. N/A N/A N/A self assertFalse N/A N/A self banned_user is_banned N/A form N/A N/A forms BanUserForm N/A user confirm N/A N/A self banned_user pk False N/A N/A N/A self assertTrue N/A N/A form is_valid N/A N/A N/A form save N/A N/A N/A self assertEqual N/A N/A N/A mock_thread objects filter call_count 0 N/A form N/A N/A forms BanUserForm N/A user confirm N/A N/A self banned_user pk True N/A N/A N/A self assertTrue N/A N/A form is_valid N/A N/A N/A form save N/A N/A N/A self assertEqual N/A N/A N/A mock_thread objects filter call_count 1 N/A N/A N/A patch object forms Thread N/A UnBanUserFormTest N/A ConnectMessageTestCase N/A N/A Tests for UnBanUserForm. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super UnBanUserFormTest self setUp N/A N/A self banned_user N/A N/A mommy make accounts.User is_banned True N/A N/A N/A N/A self banned_user add_to_group N/A N/A self group1 pk N/A test_save_confirm_is_false_thread_not_updated N/A N/A self mock_thread N/A N/A N/A Thread should not be called if confirm is False. N/A form N/A N/A forms UnBanUserForm N/A user confirm N/A N/A self banned_user pk False N/A N/A N/A self assertTrue N/A N/A form is_valid N/A N/A N/A form save N/A N/A N/A self assertEqual N/A N/A N/A mock_thread objects filter call_count 0 N/A form N/A N/A forms UnBanUserForm N/A user confirm N/A N/A self banned_user pk True N/A N/A N/A self assertTrue N/A N/A form is_valid N/A N/A N/A form save N/A N/A N/A self assertEqual N/A N/A N/A mock_thread objects filter call_count 1 N/A N/A N/A patch object forms Thread test_save_confirm_is_false_user_not_unbanned N/A N/A self N/A N/A N/A Form should unban a user. N/A N/A N/A self banned_user is_banned True N/A N/A N/A N/A self banned_user save N/A form N/A N/A forms UnBanUserForm N/A user confirm N/A N/A self banned_user pk True N/A N/A N/A self assertTrue N/A N/A form is_valid N/A N/A N/A form save N/A user N/A N/A N/A User objects get pk N/A N/A self banned_user pk N/A N/A N/A self assertFalse N/A user is_banned N/A test_save_unbanned_user_sent_most_recent_message N/A N/A self N/A N/A N/A Any threads an the user had the latest msg in should be restored. N/A thread N/A N/A mommy make connectmessages.Thread group N/A self group1 N/A message1 N/A N/A mommy make connectmessages.Message sender N/A self normal_user thread thread N/A message2 N/A N/A mommy make connectmessages.Message sender N/A self banned_user thread thread N/A N/A message2 created_at N/A N/A now N/A timedelta seconds 10 N/A N/A N/A message2 save N/A thread N/A N/A N/A Thread objects get pk N/A thread pk N/A N/A N/A self assertEqual N/A thread latest_message message1 N/A form N/A N/A forms UnBanUserForm N/A user confirm N/A N/A self banned_user pk True N/A N/A N/A self assertTrue N/A N/A form is_valid N/A N/A N/A form save N/A thread N/A N/A N/A Thread objects get pk N/A thread pk N/A N/A N/A self assertEqual N/A thread latest_message message2 N/A N/A InviteFormTest N/A TestCase N/A N/A Tests for InviteForm. test_clean_emails_one_email N/A N/A self N/A N/A N/A Should return one valid email in a list. N/A form N/A N/A forms InviteForm N/A emails test@dj.local N/A N/A N/A self assertTrue N/A N/A form is_valid N/A N/A N/A self assertEqual N/A N/A form clean_emails N/A test@dj.local N/A test_clean_emails_multiple_addresses N/A N/A self N/A N/A N/A clean_emails should return a list of valid addresses. N/A form N/A N/A forms InviteForm N/A emails test@dj.local,hi@dj.local,cow,a@dj.local N/A N/A N/A self assertTrue N/A N/A form is_valid N/A emails N/A N/A form clean_emails N/A N/A N/A self assertItemsEqual emails N/A test@dj.local hi@dj.local a@dj.local N/A test_clean_emails_no_valid_addresses N/A N/A self N/A N/A N/A Raise ValidationError if no valid addresses are found. N/A N/A N/A self assertRaises ValidationError N/A N/A form N/A N/A forms InviteForm N/A emails test N/A N/A N/A self assertFalse N/A N/A form is_valid N/A N/A N/A form clean_emails N/A test_save N/A N/A self N/A N/A N/A Saving form should create and return a list of invites. N/A form N/A N/A forms InviteForm N/A emails test@dj.local,test@dj.local,hi@dj.local,a@dj.local N/A N/A form created_by N/A N/A mommy make accounts.User is_superuser True N/A N/A N/A self assertTrue N/A N/A form is_valid N/A result N/A N/A form save N/A N/A N/A self assertEqual N/A len result 3 N/A first_result N/A N/A N/A Invite objects get pk N/A N/A result N/A 0 pk N/A N/A N/A self assertIsNone N/A first_result notified N/A N/A override_settings CELERY_ALWAYS_EAGER False N/A InviteEntryFormTest N/A TestCase N/A N/A Tests for the form for using an invite code. test_clean_invite_code N/A N/A self N/A N/A N/A Test that clean_invite_code returns a valid invite object. N/A invite N/A N/A mommy make accounts.Invite N/A form N/A N/A forms InviteEntryForm N/A invite_code N/A invite code N/A N/A N/A self assertTrue N/A N/A form is_valid N/A N/A N/A self assertEqual N/A N/A form cleaned_data N/A invite_code invite N/A test_clean_invite_code_invalid N/A N/A self N/A N/A N/A Test that clean_invite_code raises an ValidationError if invalid. N/A form N/A N/A forms InviteEntryForm N/A invite_code totally invalid N/A N/A N/A self assertFalse N/A N/A form is_valid N/A test_save N/A N/A self N/A N/A N/A Test the form's save method consumes an invite. N/A invite N/A N/A mommy make accounts.Invite N/A N/A N/A self assertFalse N/A invite consumed_at N/A N/A N/A self assertFalse N/A invite consumed_by N/A form N/A N/A forms InviteEntryForm N/A invite_code N/A invite code N/A N/A N/A self assertTrue N/A N/A form is_valid N/A user N/A N/A mommy make accounts.User N/A N/A form user_id N/A user pk N/A N/A N/A form save N/A invite N/A N/A N/A Invite objects get pk N/A invite pk N/A N/A N/A self assertTrue N/A invite consumed_at N/A N/A N/A self assertEqual N/A invite consumed_by user N/A N/A TermsAndConductAcceptFormTest N/A TestCase N/A N/A Tests for TermsAndConductAcceptForm test_valid N/A N/A self N/A N/A N/A Test a valid form. N/A form N/A N/A forms TermsAndConductAcceptForm N/A accept_tos accept_ucoc next True True / N/A N/A N/A self assertTrue N/A N/A form is_valid N/A test_save N/A N/A self N/A N/A N/A Test saving the form N/A user N/A N/A mommy make accounts.User N/A form N/A N/A forms TermsAndConductAcceptForm N/A accept_tos accept_ucoc next yes yes / N/A N/A N/A self assertTrue N/A N/A form is_valid N/A user N/A N/A form save N/A user pk N/A N/A N/A self assertIsInstance N/A user tos_accepted_at datetime N/A N/A N/A self assertIsInstance N/A user ucoc_accepted_at datetime N/A N/A