def METHOD_NAME(self):
    envelope = self._make_envelope_mock()
    envelope.account = self._make_account_mock(sign_by_default=False)
    cmd = g_commands.ComposeCommand(envelope=envelope)
    cmd._set_gpg_sign(mock.Mock())
    self.assertFalse(envelope.sign)
    self.assertIs(envelope.sign_key, None)