Ubuntu Pastebin

Paste from gnuoy at Mon, 28 Sep 2015 10:57:42 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
=== modified file 'unit_tests/test_glance_contexts.py'
--- unit_tests/test_glance_contexts.py	2015-08-27 11:44:11 +0000
+++ unit_tests/test_glance_contexts.py	2015-09-28 10:57:15 +0000
@@ -89,10 +89,13 @@
         self.assertEquals(ctxt(), {'bind_host': '::',
                                    'registry_host': '[::]'})
 
+    @patch('charmhelpers.contrib.openstack.context.config')
     @patch("subprocess.check_output")
-    def test_glance_ipv6_context_service_disabled(self, mock_subprocess):
+    def test_glance_ipv6_context_service_disabled(self, mock_subprocess,
+                                                  mock_config):
         self.config.return_value = False
+        mock_config.return_value = False
         mock_subprocess.return_value = 'false'
         ctxt = contexts.GlanceIPv6Context()
-        self.assertEquals(ctxt(), {'bind_host': '0.0.0.0',
+        self.assertEquals(ctxt(), {'bind_host': '::',
                                    'registry_host': '0.0.0.0'})
Download as text