'L{jstrports.parse} accepts an endpoint description string and returns a
tuple and dict of parsed endpoint arguments.'

def test_parse(self):

    expected = ('TCP', ('DOMAIN', 65535, 'Factory'), {})
    got = jstrports.parse('tcp:DOMAIN:65535', 'Factory')
    self.assertEqual(expected, got)
