/usr/lib/python3/dist-packages/twisted/words/test
NameSizeModeActions
__pycache__/-0755rm
test_basechat.py24730644editdlrm
test_basesupport.py30010644editdlrm
test_domish.py198220644editdlrm
test_irc.py1013160644editdlrm
test_ircsupport.py106110644editdlrm
test_irc_service.py100420644editdlrm
test_jabberclient.py165470644editdlrm
test_jabbercomponent.py139060644editdlrm
test_jabbererror.py113450644editdlrm
test_jabberjid.py68800644editdlrm
test_jabberjstrports.py9450644editdlrm
test_jabbersasl.py91650644editdlrm
test_jabbersaslmechanisms.py59690644editdlrm
test_jabberxmlstream.py450950644editdlrm
test_jabberxmppstringprep.py54390644editdlrm
test_service.py286660644editdlrm
test_tap.py21720644editdlrm
test_xishutil.py93240644editdlrm
test_xmlstream.py60650644editdlrm
test_xmpproutertap.py23920644editdlrm
test_xpath.py105970644editdlrm
__init__.py140644editdlrm
Edit: /usr/lib/python3/dist-packages/twisted/words/test/test_jabberjstrports.py (945B)
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.words.protocols.jabber.jstrports}. """ from twisted.application.internet import TCPClient from twisted.trial import unittest from twisted.words.protocols.jabber import jstrports 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)