def setUp(self): self.testbed = testbed.Testbed() self.testbed.activate() self.testbed.init_datastore_v3_stub() self.testbed.init_user_stub() self.account = Account.create_account_for_user(user=User(email='*****@*****.**')) self.account.nickname = "Adam" self.message = foo.emails.get_second_trial_communication_email(self.account)
def get(self): logging.info("Starting trial account messaging") Account.send_trial_notifications() logging.info("Ending trial account messaging")