Show More
@@ -28,7 +28,8 b' import nose.tools as nt' | |||||
28 |
|
28 | |||
29 | env = os.environ |
|
29 | env = os.environ | |
30 | TEST_FILE_PATH = split(abspath(__file__))[0] |
|
30 | TEST_FILE_PATH = split(abspath(__file__))[0] | |
31 | TMP_TEST_DIR = tempfile.mkdtemp() |
|
31 | ||
|
32 | TMP_TEST_DIR = tempfile.mkdtemp(suffix='with.dot') | |||
32 | # |
|
33 | # | |
33 | # Setup/teardown functions/decorators |
|
34 | # Setup/teardown functions/decorators | |
34 | # |
|
35 | # | |
@@ -66,6 +67,13 b' def teardown():' | |||||
66 | shutil.rmtree(TMP_TEST_DIR) |
|
67 | shutil.rmtree(TMP_TEST_DIR) | |
67 | sys.path = old_syspath |
|
68 | sys.path = old_syspath | |
68 |
|
69 | |||
|
70 | def test_tempdir(): | |||
|
71 | """ | |||
|
72 | Ensure the test are done with a temporary file that have a dot somewhere. | |||
|
73 | """ | |||
|
74 | nt.assert_in('.',TMP_TEST_DIR) | |||
|
75 | ||||
|
76 | ||||
69 | def test_find_mod_1(): |
|
77 | def test_find_mod_1(): | |
70 | """ |
|
78 | """ | |
71 | Search for a directory's file path. |
|
79 | Search for a directory's file path. |
General Comments 0
You need to be logged in to leave comments.
Login now