Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias 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 Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore Call NameLoad Expr Call NameLoad Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call NameLoad Call NameLoad Num Expr Call NameLoad keyword NameLoad Expr Call NameLoad Call NameLoad Call NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call NameLoad Call NameLoad Num Expr Call NameLoad keyword NameLoad Expr Call NameLoad Call NameLoad Call NameLoad Num decorator_list decorator_list
N/A N/A mock nose.tools * tests.base OsfTestCase tests.factories RegistrationFactory UserFactory website models scripts.email_registration_contributors get_registration_contributors send_retraction_and_embargo_addition_message main MAILER MESSAGE_NAME TestSendRetractionAndEmbargoAdditionMessage N/A OsfTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestSendRetractionAndEmbargoAdditionMessage self setUp N/A N/A self registration_contrib N/A UserFactory N/A N/A self other_user N/A UserFactory N/A N/A self registration N/A RegistrationFactory creator N/A self registration_contrib N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestSendRetractionAndEmbargoAdditionMessage self tearDown N/A N/A N/A N/A models Node remove N/A N/A N/A N/A models User remove N/A test_get_registration_contributors N/A N/A self N/A N/A N/A N/A assert_equal N/A N/A N/A N/A N/A models User find count 2 N/A registration_contributors N/A get_registration_contributors N/A N/A assert_equal N/A len registration_contributors 1 N/A test_send_retraction_and_embargo_addition_message N/A N/A self mock_send_mail N/A N/A N/A user N/A UserFactory N/A N/A send_retraction_and_embargo_addition_message user MESSAGE_NAME MAILER dry_run False N/A N/A N/A user reload N/A N/A assert_in MESSAGE_NAME N/A user security_messages N/A N/A N/A mock patch scripts.email_registration_contributors.send_retraction_and_embargo_addition_message test_dry_run_does_not_save_to_user N/A N/A self mock_send_mail N/A N/A N/A user N/A UserFactory N/A N/A send_retraction_and_embargo_addition_message user MESSAGE_NAME MAILER dry_run True N/A N/A N/A user reload N/A N/A assert_not_in MESSAGE_NAME N/A user security_messages N/A N/A N/A mock patch scripts.email_registration_contributors.send_retraction_and_embargo_addition_message test_main_dry_run_True_does_save N/A N/A self N/A N/A N/A N/A assert_equal N/A len N/A get_registration_contributors 1 N/A N/A main dry_run False N/A N/A assert_equal N/A len N/A get_registration_contributors 0 N/A test_main_dry_run_False_does_not_save N/A N/A self N/A N/A N/A N/A assert_equal N/A len N/A get_registration_contributors 1 N/A N/A main dry_run True N/A N/A assert_equal N/A len N/A get_registration_contributors 1 N/A N/A