File: test_case_base.py

package info (click to toggle)
python-genty 1.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 212 kB
  • sloc: python: 1,072; makefile: 3
file content (19 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# coding: utf-8

from __future__ import unicode_literals

from unittest import TestCase as _TestCase

import six

if not hasattr(_TestCase, 'assertItemsEqual') and not hasattr(_TestCase, 'assertCountEqual'):
    # Python 2.6 support
    # pylint:disable=import-error
    from unittest2 import TestCase as _TestCase
    # pylint:enable=import-error


class TestCase(_TestCase):
    if six.PY3:
        # pylint:disable=no-member,maybe-no-member
        assertItemsEqual = _TestCase.assertCountEqual