/usr/lib/python3/dist-packages/twisted/words/test
NameSizeModeActions
__pycache__/-0755rm
test_basechat.py25040644editdlrm
test_basesupport.py30640644editdlrm
test_domish.py201720644editdlrm
test_irc.py1033970644editdlrm
test_ircsupport.py107020644editdlrm
test_irc_service.py96390644editdlrm
test_jabberclient.py168660644editdlrm
test_jabbercomponent.py142040644editdlrm
test_jabbererror.py115210644editdlrm
test_jabberjid.py72100644editdlrm
test_jabberjstrports.py9960644editdlrm
test_jabbersasl.py94320644editdlrm
test_jabbersaslmechanisms.py57580644editdlrm
test_jabberxmlstream.py457180644editdlrm
test_jabberxmppstringprep.py55490644editdlrm
test_service.py284620644editdlrm
test_tap.py21800644editdlrm
test_xishutil.py93960644editdlrm
test_xmlstream.py62740644editdlrm
test_xmpproutertap.py23980644editdlrm
test_xpath.py110020644editdlrm
__init__.py140644editdlrm
Edit: /usr/lib/python3/dist-packages/twisted/words/test/test_jabberjstrports.py (996B)
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.words.protocols.jabber.jstrports}. """ from __future__ import absolute_import, division from twisted.trial import unittest from twisted.words.protocols.jabber import jstrports from twisted.application.internet import TCPClient class JabberStrPortsPlaceHolderTests(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)