

def test_cache_works_1(self):
    xs = rules.cached_segment_enriched_tokens(self.s1)
    rules.cached_segment_enriched_tokens(self.s2)
    ys = rules.cached_segment_enriched_tokens(self.s1)
    self.assertTrue((xs is ys))

dataset/ETHPy150Open machinalis/iepy/tests/test_rules.py TestCachedSegmentEnrichedTokens.test_cache_works_1/original