summaryrefslogtreecommitdiffstats
path: root/tests/QtNetwork/bug_1084.py
blob: 9d8471c04fb0f051128a5ba8bbce050421f7eda9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
''' unit test for BUG #1084 '''

import unittest
from PySide import QtNetwork
import py3kcompat as py3k

class QTcpSocketTestCase(unittest.TestCase):
    def setUp(self):
        self.sock = QtNetwork.QTcpSocket()
        self.sock.connectToHost('127.0.0.1', 25)

    def testIt(self):
        self.sock.write(py3k.unicode_('quit'))

if __name__ == "__main__":
    unittest.main()