Skip to content

Commit dea646d

Browse files
committed
TestEnipProtocol separate client and server init tests
1 parent 4a4ed4c commit dea646d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/protocols_tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,15 @@ def test_server_start_stop(self):
9797
except Exception as error:
9898
print 'ERROR test_server_start_stop: ', error
9999

100-
def test_init(self):
100+
def test_init_client(self):
101101

102-
# TODO: add _stop_server
103102
client = EnipProtocol(
104103
protocol=TestEnipProtocol.CLIENT_PROTOCOL)
105104
eq_(client._name, 'enip')
106105
del client
107106

107+
def test_init_server(self):
108+
108109
server = EnipProtocol(
109110
protocol=TestEnipProtocol.CLIENT_SERVER_PROTOCOL)
110111
eq_(server._name, 'enip')

0 commit comments

Comments
 (0)