1 |
# Copyright (c) 2002, 2003 by Intevation GmbH |
# Copyright (c) 2002, 2003, 2004, 2005 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Bernhard Herzog <[email protected]> |
# Bernhard Herzog <[email protected]> |
4 |
# |
# |
65 |
import Thuban |
import Thuban |
66 |
Thuban.install_translation_function(lambda s: s) |
Thuban.install_translation_function(lambda s: s) |
67 |
|
|
68 |
|
# For the time being the default encoding in the test suite is |
69 |
|
# latin 1. This is mostly for historical reasons. Other |
70 |
|
# encodings can be specified as an argument for runtests.py. |
71 |
|
Thuban.set_internal_encoding("latin-1") |
72 |
|
|
73 |
_initthuban_done = 1 |
_initthuban_done = 1 |
74 |
|
|
75 |
|
|
273 |
def filename(self): |
def filename(self): |
274 |
"""Return the name of the test file to use. |
"""Return the name of the test file to use. |
275 |
|
|
276 |
The default implementation simply calls self.volatile_file_name |
The default implementation simply calls self.temp_file_name with |
277 |
with a basename derived from the class name by stripping off a |
a basename derived from the class name by stripping off a |
278 |
leading 'test_' and appending self.file_extension. |
leading 'test_' and appending self.file_extension. |
279 |
""" |
""" |
280 |
name = self.__class__.__name__ |
name = self.__class__.__name__ |