'Test encoding behaviour of sendLine'

def test_sendLine(self):

    self.assertEqual(self.transport.value(), '')
    self.client.sendLine(None)
    self.assertEqual(self.transport.value(), '')
    self.client.sendLine('')
    self.assertEqual(self.transport.value(), '\r\n')
    self.transport.clear()
    self.client.sendLine(u'\xe9')
    self.assertEqual(self.transport.value(), '\xe9\r\n')
