Mark Bergsma has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/405296 )

Change subject: Test all branches of the Server constructor
......................................................................

Test all branches of the Server constructor

Change-Id: Iabb44b4cbe8457ccc0cc456137de0e15166cc696
---
M pybal/test/test_server.py
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/debs/pybal 
refs/changes/96/405296/1

diff --git a/pybal/test/test_server.py b/pybal/test/test_server.py
index ec6cedd..3d62f83 100644
--- a/pybal/test/test_server.py
+++ b/pybal/test/test_server.py
@@ -8,6 +8,7 @@
 """
 
 import mock
+import socket
 
 import pybal.server
 
@@ -41,6 +42,13 @@
             if call.func.func_name == 'maybeParseConfig':
                 call.cancel()
 
+    def testInit(self):
+        self.assertEquals(self.server.addressFamily, socket.AF_INET)
+
+        server = pybal.server.Server(
+            'example.com', self.lvsservice, addressFamily=socket.AF_INET6)
+        self.assertEquals(server.addressFamily, socket.AF_INET6)
+
     def testEq(self):
         self.assertEquals(self.server, self.server)
 

-- 
To view, visit https://gerrit.wikimedia.org/r/405296
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iabb44b4cbe8457ccc0cc456137de0e15166cc696
Gerrit-PatchSet: 1
Gerrit-Project: operations/debs/pybal
Gerrit-Branch: master
Gerrit-Owner: Mark Bergsma <m...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to