def test_get_resources(self): self.mock.StubOutWithMock(contrib, 'standard_extensions') contrib.standard_extensions(mox.IgnoreArg()).AndReturn(None) self.assertNotEqual( Healthnmon(FakeExtensionManager()).get_resources(), None)
def __init__(self, ext_mgr): """Register extension with the extension manager.""" ext_mgr.register(self) contrib.standard_extensions(ext_mgr)
def test_get_resources(self): self.mock.StubOutWithMock(contrib, 'standard_extensions') contrib.standard_extensions(mox.IgnoreArg()).AndReturn(None) self.assertNotEqual(Healthnmon(FakeExtensionManager()).get_resources(), None)