'Receiving a 230 response to USER prevents PASS from being sent.'

def test_noPasswordNeeded(self):

    ftpClient = ftp.FTPClientBasic()
    ftpClient.transport = proto_helpers.StringTransport()
    ftpClient.lineReceived('220    Welcome    to    Imaginary    FTP.')
    ftpClient.queueLogin('bob', 'secret')
    self.assertEqual('USER    bob\r\n', ftpClient.transport.value())
    ftpClient.transport.clear()
    ftpClient.lineReceived('230    Hello    bob.        No    password    needed.')
    self.assertEqual('', ftpClient.transport.value())
