equal
deleted
inserted
replaced
165 {'transientcount': 0, |
165 {'transientcount': 0, |
166 'itemcount': 10, |
166 'itemcount': 10, |
167 'permanentcount': 5}) |
167 'permanentcount': 5}) |
168 keys = sorted(c) |
168 keys = sorted(c) |
169 for x in range(10): |
169 for x in range(10): |
170 self.assertEquals(x, keys[x]) |
170 self.assertEqual(x, keys[x]) |
171 |
171 |
172 def test_items(self): |
172 def test_items(self): |
173 """ |
173 """ |
174 Tests the iterating on key-value couples in the cache |
174 Tests the iterating on key-value couples in the cache |
175 """ |
175 """ |
186 {'transientcount': 0, |
186 {'transientcount': 0, |
187 'itemcount': 10, |
187 'itemcount': 10, |
188 'permanentcount': 5}) |
188 'permanentcount': 5}) |
189 content = sorted(c.items()) |
189 content = sorted(c.items()) |
190 for x in range(10): |
190 for x in range(10): |
191 self.assertEquals(x, content[x][0]) |
191 self.assertEqual(x, content[x][0]) |
192 self.assertEquals(x, content[x][1]) |
192 self.assertEqual(x, content[x][1]) |
193 |
193 |
194 |
194 |
195 class UStringIOTC(TestCase): |
195 class UStringIOTC(TestCase): |
196 def test_boolean_value(self): |
196 def test_boolean_value(self): |
197 self.assertTrue(UStringIO()) |
197 self.assertTrue(UStringIO()) |