Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
satella
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
satella
Commits
f7b2d9f3
Commit
f7b2d9f3
authored
7 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
moar test
parent
f7b4032f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_coding/test_structures.py
+16
-1
16 additions, 1 deletion
tests/test_coding/test_structures.py
with
16 additions
and
1 deletion
tests/test_coding/test_structures.py
+
16
−
1
View file @
f7b2d9f3
...
@@ -3,7 +3,14 @@ from __future__ import print_function, absolute_import, division
...
@@ -3,7 +3,14 @@ from __future__ import print_function, absolute_import, division
import
unittest
import
unittest
from
satella.coding
import
TimeBasedHeap
,
Heap
from
satella.coding
import
TimeBasedHeap
,
Heap
,
CallableGroup
import
six
import
copy
class
TestCallableGroup
(
unittest
.
TestCase
):
def
test_cg_proforma
(
self
):
cg
=
CallableGroup
()
class
TestTimeBasedHeap
(
unittest
.
TestCase
):
class
TestTimeBasedHeap
(
unittest
.
TestCase
):
...
@@ -26,6 +33,14 @@ class TestTimeBasedHeap(unittest.TestCase):
...
@@ -26,6 +33,14 @@ class TestTimeBasedHeap(unittest.TestCase):
self
.
assertIn
(
'
ala
'
,
list
(
tbh
.
items
()))
self
.
assertIn
(
'
ala
'
,
list
(
tbh
.
items
()))
def
test_foobar
(
self
):
tbh
=
TimeBasedHeap
()
bytes
(
tbh
)
six
.
text_type
(
tbh
)
repr
(
tbh
)
copy
.
copy
(
tbh
)
copy
.
deepcopy
(
tbh
)
class
TestHeap
(
unittest
.
TestCase
):
class
TestHeap
(
unittest
.
TestCase
):
def
test_push
(
self
):
def
test_push
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment