Show More
@@ -1,3 +1,4 b'' | |||
|
1 | import os | |
|
1 | 2 | from unittest import TestCase |
|
2 | 3 | |
|
3 | 4 | from IPython.utils.py3compat import unicode_type |
@@ -23,8 +24,9 b' class MiscTests(TestCase):' | |||
|
23 | 24 | self.check_filename("test.nb", "test.nb.ipynb", "test.nb", "json") |
|
24 | 25 | |
|
25 | 26 | # check parsing a full file path |
|
26 | self.check_filename("/tmp/test.ipynb", "/tmp/test.ipynb", "/tmp/test", | |
|
27 | "json") | |
|
27 | abs_path = os.path.abspath("test.ipynb") | |
|
28 | basename, ext = os.path.splitext(abs_path) | |
|
29 | self.check_filename(abs_path, abs_path, basename, "json") | |
|
28 | 30 | |
|
29 | 31 | # check parsing a file name containing dots |
|
30 | 32 | self.check_filename("test.nb.ipynb", "test.nb.ipynb", "test.nb", |
General Comments 0
You need to be logged in to leave comments.
Login now