Skip to content

Commit c1267ba

Browse files
committed
PLAT-245 -- Add library tests.
1 parent cdc07ac commit c1267ba

File tree

3 files changed

+828
-0
lines changed

3 files changed

+828
-0
lines changed

test/__init__.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# -*- coding: utf-8 -*-
2+
from unittest import TestCase
3+
4+
import six
5+
6+
7+
if six.PY2:
8+
9+
class TestCasePatch(TestCase):
10+
"""Provide the assert_items_equal method for testing. """
11+
def runTest(self, *a, **kwa): # Hack needed only in Python 2
12+
pass
13+
assert_items_equal = TestCasePatch().assertItemsEqual
14+
15+
else:
16+
17+
assert_items_equal = TestCase().assertCountEqual

0 commit comments

Comments
 (0)