|
@ -47,10 +47,8 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): |
|
|
def chdir(): |
|
|
def chdir(): |
|
|
"""Context to temporarry change current directory to this file directory |
|
|
"""Context to temporarry change current directory to this file directory |
|
|
""" |
|
|
""" |
|
|
olddir = os.getcwd() |
|
|
with files.chdir(resource_filename(__name__, "")): |
|
|
os.chdir(resource_filename(__name__, "")) |
|
|
yield |
|
|
yield |
|
|
|
|
|
os.chdir(olddir) |
|
|
|
|
|
|
|
|
|
|
|
def assertRender(self, base, destformat): # pylint: disable=invalid-name |
|
|
def assertRender(self, base, destformat): # pylint: disable=invalid-name |
|
|
"""Assert that `{base}.source` is correctly rendered in the `destformat`. |
|
|
"""Assert that `{base}.source` is correctly rendered in the `destformat`. |
|
|