From 91b450bd6ba03ba2a9bc5af51734e097697dd92d Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Sat, 16 Jul 2011 22:56:43 +0200 Subject: [PATCH] Add tests for line protocol host and port properties --- tests/utils/network/lineprotocol_test.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/utils/network/lineprotocol_test.py b/tests/utils/network/lineprotocol_test.py index 836c3109..d339890c 100644 --- a/tests/utils/network/lineprotocol_test.py +++ b/tests/utils/network/lineprotocol_test.py @@ -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)