def test_unknownType(self):
        """
        L{endpoints.serverFromString} raises C{ValueError} when given an
        unknown endpoint type.
        """
        value = self.assertRaises(
            # faster-than-light communication not supported
            ValueError, endpoints.serverFromString, None,
            "ftl:andromeda/carcosa/hali/2387")
        self.assertEqual(
            str(value),
            "Unknown endpoint type: 'ftl'")

        L{endpoints.serverFromString} raises C{ValueError} when given an
        unknown endpoint type.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_endpoints.py