[#927] Calls the public method intead of private one on test
authorAnike Arni <aarni@thoughtworks.com>
Thu, 20 Apr 2017 12:25:14 +0000 (09:25 -0300)
committerAnike Arni <aarni@thoughtworks.com>
Thu, 20 Apr 2017 12:25:14 +0000 (09:25 -0300)
with @deniscostadsc

service/test/unit/test_account_recovery.py

index e9979fa..4dc9621 100644 (file)
@@ -98,7 +98,7 @@ class AccountRecoveryTest(unittest.TestCase):
         recovery_code_email = '\ntest@test.com, team@test.com, Sat, 21 Mar 2015 19:30:09 -0300, test.com, 34363435613266383939376535643064'
 
         with patch('pixelated.account_recovery.open', mock_open(read_data=mock_file_content), create=True):
-            yield self.account_recovery._send_mail(self.generated_code, self.backup_email)
+            yield self.account_recovery.update_recovery_code()
 
             mock_sendmail.assert_called_with(
                 self.mock_smtp_config.remote_smtp_host,