Module ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword ListLoad NameLoad Assign NameStore Call NameLoad keyword ListLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Num Call NameLoad AttributeLoad NameLoad attr Assert CompareIn AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assert CompareIn AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Num Call NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad Num Call NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call NameLoad Num Expr Call NameLoad Num Call NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list
N/A django.contrib.sites.models Site django.core mail N/A mock nose.tools eq_ kitsune.announcements.tasks send_group_email kitsune.announcements.tests AnnouncementFactory kitsune.sumo.tests TestCase kitsune.users.tests UserFactory GroupFactory AnnouncementSaveTests N/A TestCase N/A N/A Test creating group announcements. _setup_announcement N/A N/A self visible_dates N/A True N/A N/A g N/A GroupFactory N/A u1 N/A UserFactory groups N/A g N/A u2 N/A UserFactory groups N/A g N/A N/A self user u2 N/A N/A AnnouncementFactory creator u1 group g visible_dates visible_dates N/A test_create_announcement N/A N/A self get_current N/A N/A N/A An announcement is created and email is sent to group members. N/A N/A N/A get_current return_value domain testserver N/A a N/A N/A self _setup_announcement N/A N/A eq_ 2 N/A len N/A mail outbox N/A N/A N/A a content N/A N/A N/A mail outbox N/A 0 body N/A N/A N/A a content N/A N/A N/A mail outbox N/A 1 body N/A N/A a creator N/A self user N/A N/A N/A a save N/A N/A eq_ 2 N/A len N/A mail outbox N/A N/A N/A N/A mock patch object N/A Site objects get_current test_create_invisible_announcement N/A N/A self get_current N/A N/A N/A No emails sent if announcement is not visible. N/A N/A N/A get_current return_value domain testserver N/A N/A N/A self _setup_announcement visible_dates False N/A N/A eq_ 0 N/A len N/A mail outbox N/A N/A N/A N/A mock patch object N/A Site objects get_current test_send_nonexistent N/A N/A self get_current N/A N/A N/A Send a non-existent announcement by email shouldn't break. N/A N/A N/A get_current return_value domain testserver N/A N/A send_group_email 1 N/A N/A eq_ 0 N/A len N/A mail outbox N/A N/A N/A N/A mock patch object N/A Site objects get_current N/A