示例#1
0
 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")
示例#2
0
 def test_constructor(self):
     layoutserver = LayoutServer(self.layout, "Test Server", 10000)
     self.assertIsInstance(layoutserver, LayoutServer)