示例#1
0
class JuiciTestCase(unittest.TestCase):
    def setUp(self):
        self.server = JuiciServer()

    def socket(self):
        sock = socket.socket(socket.AF_UNIX)
        sock.connect("/tmp/juici.sock")
        return sock

    def tearDown(self):
        self.server.shutdown()
示例#2
0
 def setUp(self):
     self.server = JuiciServer()