def setUp(self):
        super(TestNetworkMetadataProxyHandler, self).setUp()
        self.log_p = mock.patch.object(ns_proxy, 'LOG')
        self.log = self.log_p.start()
        self.addCleanup(self.log_p.stop)

        self.handler = ns_proxy.NetworkMetadataProxyHandler('router_id')
 def test_no_argument_passed_to_init(self):
     with testtools.ExpectedException(ValueError):
         ns_proxy.NetworkMetadataProxyHandler()
 def test_no_argument_passed_to_init(self):
     with self.assertRaises(ValueError):
         ns_proxy.NetworkMetadataProxyHandler()
    def setUp(self):
        self.log_p = mock.patch.object(ns_proxy, 'LOG')
        self.log = self.log_p.start()

        self.handler = ns_proxy.NetworkMetadataProxyHandler('router_id')