Add tests for line protocol host and port properties
This commit is contained in:
parent
a1c382666f
commit
91b450bd6b
@ -217,10 +217,16 @@ class LineProtocolTest(unittest.TestCase):
|
||||
|
||||
network.LineProtocol.encode(self.mock, string)
|
||||
|
||||
@SkipTest
|
||||
def test_host_property(self):
|
||||
pass
|
||||
mock = Mock(spec=network.Connection)
|
||||
mock.host = sentinel.host
|
||||
|
||||
lineprotocol = network.LineProtocol(mock)
|
||||
self.assertEqual(sentinel.host, lineprotocol.host)
|
||||
|
||||
@SkipTest
|
||||
def test_port_property(self):
|
||||
pass
|
||||
mock = Mock(spec=network.Connection)
|
||||
mock.port = sentinel.port
|
||||
|
||||
lineprotocol = network.LineProtocol(mock)
|
||||
self.assertEqual(sentinel.port, lineprotocol.port)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user