

def test_cache_works_2(self):
    mockedGET = mock.MagicMock(return_value=mockedGET.s1.get_enriched_tokens())
    self.s1.get_enriched_tokens = mockedGET
    rules.cached_segment_enriched_tokens(self.s1)
    rules.cached_segment_enriched_tokens(self.s1)
    mockedGET.assert_called_once_with()

dataset/ETHPy150Open machinalis/iepy/tests/test_rules.py TestCachedSegmentEnrichedTokens.test_cache_works_2/VarMisuse@18/27 `self`->`mockedGET`