Skip to content
Snippets Groups Projects
Commit f7b2d9f3 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

moar test

parent f7b4032f
No related branches found
No related tags found
No related merge requests found
...@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment