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_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)