Add tests for line protocol host and port properties

This commit is contained in:
Thomas Adamcik 2011-07-16 22:56:43 +02:00
parent a1c382666f
commit 91b450bd6b

View File

@ -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)