def setUp(self): self.path = os.path.join(layoutPath, layoutFile) self.layout = Layout.createFromExisting(self.path) self.layoutserver = LayoutServer(self.layout, "Test Server", 10020) self.layoutserver.run() self.conn = httplib.HTTPConnection("localhost:10020")
def test_constructor(self): layoutserver = LayoutServer(self.layout, "Test Server", 10000) self.assertIsInstance(layoutserver, LayoutServer)