def build_UNIX_integration_tests(mixin_class, name, fixture):
 class RealTests(mixin_class, AsyncTestCase, ):
  '\n        Tests that endpoints are available over the network interfaces that\n        real API users will be connecting from.\n        '
  def setUp(self):
   path = os.path.relpath(self.mktemp())
   self.app = fixture(self)
   self.port = reactor.listenUNIX(path, Site(self.app.resource()))
   self.addCleanup(self.port.stopListening)
   self.agent = ProxyAgent(UNIXClientEndpoint(reactor, path), reactor)
   super(RealTests, self).setUp()
 RealTests.__name__ += name
 RealTests.__module__ = mixin_class.__module__
 return RealTests

def build_UNIX_integration_tests ( mixin_class , name , fixture ) : class RealTests ( mixin_class , AsyncTestCase , ) : def setUp ( self ) : path = os . path . relpath ( self . mktemp ( ) ) self . app = fixture ( self ) self . port = reactor . listenUNIX ( path , Site ( self . app . resource ( ) ) ) self . addCleanup ( self . port . stopListening ) self . agent = ProxyAgent ( UNIXClientEndpoint ( reactor , path ) , reactor ) super ( RealTests , self ) . setUp ( ) RealTests . __name__ += name RealTests . __module__ = mixin_class . __module__ return RealTests
build asynctestcase class that runs the tests in the mixin class with real queries over a unix socket .