Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Assign NameStore Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr CompareIn SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad Call NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Str Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Assign NameStore Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr ListLoad Str Call AttributeLoad NameLoad attr decorator_list decorator_list Call NameLoad keyword Str
N/A django.conf settings django.core mail django.core.urlresolvers reverse django.test RequestFactory TestCase django.test.utils override_settings forms ContactForm ContactFormViewTests N/A TestCase N/A test_get N/A N/A self N/A N/A N/A 
        HTTP GET on the form view just shows the form.

         N/A contact_url N/A reverse contact_form N/A response N/A N/A N/A self client get contact_url N/A N/A N/A self assertEqual 200 N/A response status_code N/A N/A N/A self assertTemplateUsed response contact_form/contact_form.html N/A test_send N/A N/A self N/A N/A N/A 
        Valid data through the view results in a successful send.

         N/A contact_url N/A reverse contact_form N/A data N/A name email body Test test@example.com Test message N/A response N/A N/A N/A self client post contact_url data data N/A N/A N/A self assertRedirects response N/A reverse contact_form_sent N/A N/A N/A self assertEqual 1 N/A len N/A mail outbox N/A message N/A N/A mail outbox N/A 0 N/A N/A N/A self assertTrue N/A N/A data N/A body N/A message body N/A N/A N/A self assertEqual N/A settings DEFAULT_FROM_EMAIL N/A message from_email N/A form N/A ContactForm request N/A N/A RequestFactory request N/A N/A N/A self assertEqual N/A form recipient_list N/A N/A message recipients N/A test_invalid N/A N/A self N/A N/A N/A 
        Invalid data doesn't work.

         N/A contact_url N/A reverse contact_form N/A data N/A name body Test Test message N/A response N/A N/A N/A self client post contact_url data data N/A N/A N/A self assertEqual 200 N/A response status_code N/A N/A N/A self assertFormError response form email This field is required. N/A N/A N/A self assertEqual 0 N/A len N/A mail outbox N/A test_recipient_list N/A N/A self N/A N/A N/A 
        Passing recipient_list when instantiating ContactFormView
        properly overrides the list of recipients.

         N/A contact_url N/A reverse test_recipient_list N/A data N/A name email body Test test@example.com Test message N/A response N/A N/A N/A self client post contact_url data data N/A N/A N/A self assertRedirects response N/A reverse contact_form_sent N/A N/A N/A self assertEqual 1 N/A len N/A mail outbox N/A message N/A N/A mail outbox N/A 0 N/A N/A N/A self assertEqual N/A recipient_list@example.com N/A N/A message recipients N/A N/A N/A override_settings ROOT_URLCONF contact_form.tests.test_urls