# This test script was automatically generated by the contrib-patch-tests.py
# script. If you want to make changes to it, you should make sure that you have
# removed the ``_generated`` suffix from the file name, to prevent the content
# from being overwritten by future re-generations.

from ddtrace.contrib.internal.unittest.patch import get_version
from ddtrace.contrib.internal.unittest.patch import patch


try:
    from ddtrace.contrib.internal.unittest.patch import unpatch
except ImportError:
    unpatch = None
from tests.contrib.patch import PatchTestCase


class TestUnittestPatch(PatchTestCase.Base):
    __integration_name__ = "unittest"
    __module_name__ = "unittest"
    __patch_func__ = patch
    __unpatch_func__ = unpatch
    __get_version__ = get_version

    def assert_module_patched(self, unittest):
        pass

    def assert_not_module_patched(self, unittest):
        pass

    def assert_not_module_double_patched(self, unittest):
        pass

    def test_and_emit_get_version(self):
        version = get_version()
        assert type(version) == str
        assert version == ""
