[Checkins] SVN: BTrees/branches/pure_python/ Beginnigs of coverage for BTrees/___Bucket.py
Tres Seaver
cvs-admin at zope.org
Mon Nov 12 16:39:29 UTC 2012
Log message for revision 128254:
Beginnigs of coverage for BTrees/___Bucket.py
Changed:
_U BTrees/branches/pure_python/
A BTrees/branches/pure_python/BTrees/tests/test____BTree.py
-=-
Added: BTrees/branches/pure_python/BTrees/tests/test____BTree.py
===================================================================
--- BTrees/branches/pure_python/BTrees/tests/test____BTree.py (rev 0)
+++ BTrees/branches/pure_python/BTrees/tests/test____BTree.py 2012-11-12 16:39:29 UTC (rev 128254)
@@ -0,0 +1,36 @@
+##############################################################################
+#
+# Copyright 2012 Zope Foundation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+import unittest
+
+
+class _BucketBaseTests(unittest.TestCase):
+
+ def _getTargetClass(self):
+ from BTrees.___BTree import _BucketBase
+ return _BucketBase
+
+ def _makeOne(self, *args, **kw):
+ return self._getTargetClass()(*args, **kw)
+
+ def test_ctor_defaults(self):
+ bucket = self._makeOne()
+ self.assertEqual(bucket._keys, [])
+ self.assertEqual(bucket._next, None)
+ self.assertEqual(bucket.size, 0)
+
+
+def test_suite():
+ return unittest.TestSuite((
+ unittest.makeSuite(_BucketBaseTests),
+ ))
More information about the checkins
mailing list