def METHOD_NAME(self):
    # Yeah, yeah, whatever
    self.state.return_value.exists.return_value = False
    integ.run(False)
    # This has succeeded
    self.do_exit.assert_not_called()
    self.get_encrypted_credentials.assert_called_once_with(
        "credentials_name", self.user, self.settings
    )
    calls = self.smtpclient.return_value.send_mail.call_args_list
    self.assertEqual(len(calls), 1)
    # I don't care too much about the body of the email, TBH
    self.assertEqual(calls[0][0][:-1], (["myorg"], "aname"))
    # Just check that we're still sending the encrypted credential
    # in the body. This assertion is backwards with regards to all
    # other assertions :(
    self.assertIn("anencryptedcred", calls[0][0][-1])