summaryrefslogtreecommitdiffstats
path: root/tests/client.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-10-01 21:36:37 -0400
committerSimo Sorce <simo@redhat.com>2015-10-19 12:18:21 -0400
commit2380852ef8007cd9862d2db5f6af7e4e10bd6aad (patch)
tree3577a8d005c99e1d473eeadd0337793b508aeba1 /tests/client.py
parent9f9e8ab04f7478688d41c9bcb6ec3e3a7913fd8d (diff)
downloadcustodia-2380852ef8007cd9862d2db5f6af7e4e10bd6aad.tar.gz
custodia-2380852ef8007cd9862d2db5f6af7e4e10bd6aad.tar.xz
custodia-2380852ef8007cd9862d2db5f6af7e4e10bd6aad.zip
Use CustodiaClient in tests
Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Christian Heimes <cheimes@redhat.com>
Diffstat (limited to 'tests/client.py')
-rw-r--r--tests/client.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/client.py b/tests/client.py
deleted file mode 100644
index 39dad61..0000000
--- a/tests/client.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
-
-try:
- # pylint: disable=import-error
- from httplib import HTTPConnection
-except ImportError:
- # pylint: disable=import-error,no-name-in-module
- from http.client import HTTPConnection
-import socket
-
-
-class LocalConnection(HTTPConnection):
-
- def __init__(self, path):
- HTTPConnection.__init__(self, 'localhost', 0)
- self.unix_socket = path
-
- def connect(self):
- s = socket.socket(family=socket.AF_UNIX)
- s.connect(self.unix_socket)
- self.sock = s