def getCpe(self): root = TestDeviceModelRoot() cpe = api.CPE(root) cpe_machine = http.Listen(ip=None, port=0, ping_path='/ping/acs_integration_test', acs=None, cpe=cpe, cpe_listener=False, platform_config=FakePlatformConfig()) return cpe_machine
def getCpe(self): dm_root.PLATFORMDIR = '../platform' root = dm_root.DeviceModelRoot(self.io_loop, 'fakecpe') cpe = api.CPE(root) dldir = tempfile.mkdtemp() self.removedirs.append(dldir) cfdir = tempfile.mkdtemp() self.removedirs.append(cfdir) cpe.download_manager.SetDirectories(config_dir=cfdir, download_dir=dldir) cpe_machine = http.Listen(ip=None, port=0, ping_path='/ping/http_test', acs=None, cpe=cpe, cpe_listener=False, platform_config=MockPlatformConfig(), ioloop=self.io_loop) return cpe_machine