aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_test.py1
-rw-r--r--test/test_utils.py10
2 files changed, 11 insertions, 0 deletions
diff --git a/test/test_test.py b/test/test_test.py
index fc97d263..89889ba1 100644
--- a/test/test_test.py
+++ b/test/test_test.py
@@ -25,6 +25,7 @@ class TestDaemonManual:
ssloptions = dict(
keyfile = utils.data.path("resources/server.key"),
certfile = utils.data.path("resources/server.crt"),
+ ssl_after_connect = False
)
d = test.Daemon(ssl=ssloptions)
rsp = requests.get("https://localhost:%s/p/202:da"%d.port, verify=False)
diff --git a/test/test_utils.py b/test/test_utils.py
index 0a48d87d..b8aa7f12 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -1,6 +1,16 @@
from libpathod import utils
import tutils
+
+def test_membool():
+ m = utils.MemBool()
+ assert not m.v
+ assert m(1)
+ assert m.v == 1
+ assert m(2)
+ assert m.v == 2
+
+
def test_parse_size():
assert utils.parse_size("100") == 100
assert utils.parse_size("100k") == 100 * 1024