diff options
Diffstat (limited to 'lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/words/test/test_jabberjstrports.py')
-rwxr-xr-x | lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/words/test/test_jabberjstrports.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/words/test/test_jabberjstrports.py b/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/words/test/test_jabberjstrports.py deleted file mode 100755 index 6d8f045d..00000000 --- a/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/words/test/test_jabberjstrports.py +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright (c) Twisted Matrix Laboratories. -# See LICENSE for details. - -""" -Tests for L{twisted.words.protocols.jabber.jstrports}. -""" - -from twisted.trial import unittest - -from twisted.words.protocols.jabber import jstrports -from twisted.application.internet import TCPClient - - -class JabberStrPortsPlaceHolderTest(unittest.TestCase): - """ - Tests for L{jstrports} - """ - - def test_parse(self): - """ - L{jstrports.parse} accepts an endpoint description string and returns a - tuple and dict of parsed endpoint arguments. - """ - expected = ('TCP', ('DOMAIN', 65535, 'Factory'), {}) - got = jstrports.parse("tcp:DOMAIN:65535", "Factory") - self.assertEqual(expected, got) - - - def test_client(self): - """ - L{jstrports.client} returns a L{TCPClient} service. - """ - got = jstrports.client("tcp:DOMAIN:65535", "Factory") - self.assertIsInstance(got, TCPClient) |