Skip to content

Commit 9974818

Browse files
committed
nose2pytest test_tls
1 parent ffc61b8 commit 9974818

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/test_tls.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
from nose.tools import (
2-
assert_true,
3-
assert_false,
4-
assert_equal,
5-
assert_list_equal,
62
raises,
73
)
84
import datajoint as dj
@@ -18,7 +14,7 @@ def test_secure_connection():
1814
.query("SHOW STATUS LIKE 'Ssl_cipher';")
1915
.fetchone()[1]
2016
)
21-
assert_true(len(result) > 0)
17+
assert len(result) > 0
2218

2319
@staticmethod
2420
def test_insecure_connection():
@@ -27,7 +23,7 @@ def test_insecure_connection():
2723
.query("SHOW STATUS LIKE 'Ssl_cipher';")
2824
.fetchone()[1]
2925
)
30-
assert_equal(result, "")
26+
assert result == ""
3127

3228
@staticmethod
3329
@raises(OperationalError)

0 commit comments

Comments
 (0)