def test_create_endpoint_kwarg(self):

        class OptEndpointUnit(EndpointUnit):
            def __init__(self, opt=None, **kwargs):
                self._opt = opt
                EndpointUnit.__init__(self, **kwargs)

        self._ef.endpoint_unit_type = OptEndpointUnit

        e = self._ef.create_endpoint(opt="stringer")
        self.assertTrue(hasattr(e, "_opt"))
        self.assertEquals(e._opt, "stringer")
Make sure our kwarg gets set.
dataset/ETHPy150Open ooici/pyon/pyon/net/test/test_endpoint.py/TestBaseEndpoint.test_create_endpoint_kwarg