# Path: elbepack/commands/test.py
# class ElbeTestCase(unittest.TestCase):
# 
#     level = ElbeTestLevel.BASE
# 
#     def __init__(self, methodName='runTest', param=None):
#         self.methodName = methodName
#         self.param = param
#         self.stdout = None
#         super().__init__(methodName)
# 
#     def __str__(self):
#         name = super(ElbeTestCase, self).__str__()
#         if self.param:
#             return "%s : param=%s" % (name, self.param)
#         return name
# 
#     def parameterize(self, param):
#         return self.__class__(methodName=self.methodName, param=param)


import doctest
import elbepack.shellhelper as shellhelper
import elbepack.filesystem as filesystem
from elbepack.commands.test import ElbeTestCase
# ELBE - Debian Based Embedded Rootfilesystem Builder
# Copyright (c) 2020 Olivier Dion <dion@linutronix.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later




class ElbeDocTest(ElbeTestCase):

    # This is an example of a callable parametrization
    @staticmethod
    def params():
        return [shellhelper, filesystem]

    def setUp(self):

        self.kwargs = {}

        if self.param is filesystem:
            self.kwargs["extraglobs"] = {"this":filesystem.TmpdirFilesystem()}


# Path: elbepack/commands/test.py
# class ElbeTestCase(unittest.TestCase):
# 
#     level = ElbeTestLevel.BASE
# 
#     def __init__(self, methodName='runTest', param=None):
#         self.methodName = methodName
#         self.param = param
#         self.stdout = None
#         super().__init__(methodName)
# 
#     def __str__(self):
#         name = super(ElbeTestCase, self).__str__()
#         if self.param:
#             return "%s : param=%s" % (name, self.param)
#         return name
# 
#     def parameterize(self, param):
#         return self.__class__(methodName=self.methodName, param=param)


# Path: elbepack/tests/test_doctest.py
import doctest
import elbepack.shellhelper as shellhelper
import elbepack.filesystem as filesystem
from elbepack.commands.test import ElbeTestCase

# ELBE - Debian Based Embedded Rootfilesystem Builder
# Copyright (c) 2020 Olivier Dion <dion@linutronix.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later




class ElbeDocTest(ElbeTestCase):

    # This is an example of a callable parametrization
    @staticmethod
    def params():
        return [shellhelper, filesystem]

    def setUp(self):

        self.kwargs = {}

        if self.param is filesystem:
            self.kwargs["extraglobs"] = {"this":filesystem.TmpdirFilesystem()}


    def tearDown(self):