Commit 3ecf5ce9 authored by Tres Seaver's avatar Tres Seaver

Beginnigs of coverage for BTrees/___Bucket.py

parent 504fa9d0
##############################################################################
#
# 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),
))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment