'Test the login part.'

def _testLogin(self):

    self.assertEqual(self.transport.value(), '')
    self.client.lineReceived('331    Guest    login    ok,    type    your    email    address    as    password.')
    self.assertEqual(self.transport.value(), 'USER    anonymous\r\n')
    self.transport.clear()
    self.client.lineReceived('230    Anonymous    login    ok,    access    restrictions    apply.')
    self.assertEqual(self.transport.value(), 'TYPE    I\r\n')
    self.transport.clear()
    self.client.lineReceived('200    Type    set    to    I.')
