'If L{smtp.SMTPClient.sendError} is called with an L{SMTPClientError}
which is not fatal, it sends C{"QUIT"} and waits for the server to
close the connection.'

def test_sendNonFatalError(self):

    client = smtp.SMTPClient(None)
    transport = StringTransport()
    client.makeConnection(transport)
    client.sendError(smtp.SMTPClientError(123, 'foo', isFatal=False))
    self.assertEqual(transport.value(), 'QUIT\r\n')
    self.assertFalse(transport.disconnecting)
