test/unittest_utils.py
changeset 10933 830f1ea52789
parent 10609 e2d8e81bfe68
--- a/test/unittest_utils.py	Wed Nov 25 18:31:48 2015 +0100
+++ b/test/unittest_utils.py	Thu Jun 25 17:13:33 2015 +0200
@@ -26,8 +26,8 @@
 from logilab.common.testlib import TestCase, DocTest, unittest_main
 
 from cubicweb.devtools.testlib import CubicWebTC
-from cubicweb.utils import (make_uid, UStringIO, SizeConstrainedList,
-                            RepeatList, HTMLHead, QueryCache, parse_repo_uri)
+from cubicweb.utils import (make_uid, UStringIO, RepeatList, HTMLHead,
+                            QueryCache, parse_repo_uri)
 from cubicweb.entity import Entity
 
 try:
@@ -166,25 +166,6 @@
         self.assertEqual(l, [(1, 3)]*2)
 
 
-class SizeConstrainedListTC(TestCase):
-
-    def test_append(self):
-        l = SizeConstrainedList(10)
-        for i in range(12):
-            l.append(i)
-        self.assertEqual(l, list(range(2, 12)))
-
-    def test_extend(self):
-        testdata = [(list(range(5)), list(range(5))),
-                    (list(range(10)), list(range(10))),
-                    (list(range(12)), list(range(2, 12))),
-                    ]
-        for extension, expected in testdata:
-            l = SizeConstrainedList(10)
-            l.extend(extension)
-            yield self.assertEqual, l, expected
-
-
 class JSONEncoderTC(TestCase):
     def setUp(self):
         if json is None: