File: test_case_base.py

package info (click to toggle)
python-genty 1.3.0-1
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 240 kB
  • ctags: 199
  • sloc: python: 1,061; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 496 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# coding: utf-8

from __future__ import unicode_literals

import six
from unittest import TestCase as _TestCase
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