Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BTrees
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
BTrees
Commits
2dbcd228
Commit
2dbcd228
authored
Nov 11, 2012
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
100% coverage for OOBTree.
parent
0ab444fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
23 deletions
+48
-23
BTrees/tests/test_OOBTree.py
BTrees/tests/test_OOBTree.py
+48
-23
No files found.
BTrees/tests/test_OOBTree.py
View file @
2dbcd228
...
@@ -146,6 +146,52 @@ class OOBTreePyTest(BTreeTests, unittest.TestCase):
...
@@ -146,6 +146,52 @@ class OOBTreePyTest(BTreeTests, unittest.TestCase):
return
OOBTreePy
()
return
OOBTreePy
()
class
PureOO
(
SetResult
,
unittest
.
TestCase
):
def
union
(
self
,
*
args
):
from
BTrees.OOBTree
import
union
return
union
(
*
args
)
def
intersection
(
self
,
*
args
):
from
BTrees.OOBTree
import
intersection
return
intersection
(
*
args
)
def
difference
(
self
,
*
args
):
from
BTrees.OOBTree
import
difference
return
difference
(
*
args
)
def
builders
(
self
):
from
BTrees.OOBTree
import
OOBTree
from
BTrees.OOBTree
import
OOBucket
from
BTrees.OOBTree
import
OOTreeSet
from
BTrees.OOBTree
import
OOSet
return
OOSet
,
OOTreeSet
,
makeBuilder
(
OOBTree
),
makeBuilder
(
OOBucket
)
class
PureOOPy
(
SetResult
,
unittest
.
TestCase
):
def
union
(
self
,
*
args
):
from
BTrees.OOBTree
import
unionPy
return
unionPy
(
*
args
)
def
intersection
(
self
,
*
args
):
from
BTrees.OOBTree
import
intersectionPy
return
intersectionPy
(
*
args
)
def
difference
(
self
,
*
args
):
from
BTrees.OOBTree
import
differencePy
return
differencePy
(
*
args
)
def
builders
(
self
):
from
BTrees.OOBTree
import
OOBTreePy
from
BTrees.OOBTree
import
OOBucketPy
from
BTrees.OOBTree
import
OOTreeSetPy
from
BTrees.OOBTree
import
OOSetPy
return
(
OOSetPy
,
OOTreeSetPy
,
makeBuilder
(
OOBTreePy
),
makeBuilder
(
OOBucketPy
))
class
OOModuleTest
(
ModuleTest
,
unittest
.
TestCase
):
class
OOModuleTest
(
ModuleTest
,
unittest
.
TestCase
):
prefix
=
'OO'
prefix
=
'OO'
...
@@ -183,28 +229,6 @@ class OOModuleTest(ModuleTest, unittest.TestCase):
...
@@ -183,28 +229,6 @@ class OOModuleTest(ModuleTest, unittest.TestCase):
self
.
fail
(
"OOBTree shouldn't have multiunion"
)
self
.
fail
(
"OOBTree shouldn't have multiunion"
)
class
PureOO
(
SetResult
,
unittest
.
TestCase
):
def
union
(
self
,
*
args
):
from
BTrees.OOBTree
import
union
return
union
(
*
args
)
def
intersection
(
self
,
*
args
):
from
BTrees.OOBTree
import
intersection
return
intersection
(
*
args
)
def
difference
(
self
,
*
args
):
from
BTrees.OOBTree
import
difference
return
difference
(
*
args
)
def
builders
(
self
):
from
BTrees.OOBTree
import
OOBTree
from
BTrees.OOBTree
import
OOBucket
from
BTrees.OOBTree
import
OOTreeSet
from
BTrees.OOBTree
import
OOSet
return
OOSet
,
OOTreeSet
,
makeBuilder
(
OOBTree
),
makeBuilder
(
OOBucket
)
def
test_suite
():
def
test_suite
():
return
unittest
.
TestSuite
((
return
unittest
.
TestSuite
((
unittest
.
makeSuite
(
OOBTreeInternalKeyTest
),
unittest
.
makeSuite
(
OOBTreeInternalKeyTest
),
...
@@ -219,6 +243,7 @@ def test_suite():
...
@@ -219,6 +243,7 @@ def test_suite():
unittest
.
makeSuite
(
OOSetPyTest
),
unittest
.
makeSuite
(
OOSetPyTest
),
unittest
.
makeSuite
(
OOBTreeTest
),
unittest
.
makeSuite
(
OOBTreeTest
),
unittest
.
makeSuite
(
OOBTreePyTest
),
unittest
.
makeSuite
(
OOBTreePyTest
),
unittest
.
makeSuite
(
OOModuleTest
),
unittest
.
makeSuite
(
PureOO
),
unittest
.
makeSuite
(
PureOO
),
unittest
.
makeSuite
(
PureOOPy
),
unittest
.
makeSuite
(
OOModuleTest
),
))
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment