

def test_memoize(self):
    mo = self.useFixture(tools.OpenFixture(self.proc_path, '0')).mock_open
    ipv6_utils.is_enabled()
    enabled = ipv6_utils.is_enabled()
    self.assertTrue(mo)
    mo.assert_called_once_with(self.proc_path, 'r')

dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/common/test_ipv6_utils.py TestIsEnabled.test_memoize/VarMisuse@48/62 `enabled`->`mo`