##// END OF EJS Templates
Test full path on windows and unix.
cel -
Show More
@@ -1,3 +1,4 b''
1 import os
1 from unittest import TestCase
2 from unittest import TestCase
2
3
3 from IPython.utils.py3compat import unicode_type
4 from IPython.utils.py3compat import unicode_type
@@ -23,8 +24,9 b' class MiscTests(TestCase):'
23 self.check_filename("test.nb", "test.nb.ipynb", "test.nb", "json")
24 self.check_filename("test.nb", "test.nb.ipynb", "test.nb", "json")
24
25
25 # check parsing a full file path
26 # check parsing a full file path
26 self.check_filename("/tmp/test.ipynb", "/tmp/test.ipynb", "/tmp/test",
27 abs_path = os.path.abspath("test.ipynb")
27 "json")
28 basename, ext = os.path.splitext(abs_path)
29 self.check_filename(abs_path, abs_path, basename, "json")
28
30
29 # check parsing a file name containing dots
31 # check parsing a file name containing dots
30 self.check_filename("test.nb.ipynb", "test.nb.ipynb", "test.nb",
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