def test_maxsize(self):
        d = RecentlyUsedContainer(5)

        for i in range(5):
            d[i] = str(i)

        self.assertEqual(len(d), 5)

        for i in range(5):
            self.assertEqual(d[i], str(i))

        d[i+1] = str(i+1)

        self.assertEqual(len(d), 5)
        self.assertFalse(0 in d)
        self.assertTrue(i+1 in d)
dataset/ETHPy150Open shazow/unstdlib.py/test/test_standard.py/TestRecentlyUsedContainer.test_maxsize/original