@@ -44,6 +44,7 @@ def test_no_fullname(self):
44
44
dir_path , only_file_name = os .path .split (path )
45
45
self .assertTrue (os .path .exists (dir_path ))
46
46
self .assertIsNotNone (only_file_name )
47
+ self .assertEqual (only_file_name , file_name )
47
48
48
49
def test_no_path (self ):
49
50
"""
@@ -57,6 +58,7 @@ def test_no_path(self):
57
58
dir_path , only_file_name = os .path .split (path )
58
59
self .assertTrue (os .path .exists (dir_path ))
59
60
self .assertIsNotNone (only_file_name )
61
+ self .assertEqual (only_file_name , file_name )
60
62
61
63
def test_current_path (self ):
62
64
"""
@@ -70,6 +72,7 @@ def test_current_path(self):
70
72
dir_path , only_file_name = os .path .split (path )
71
73
self .assertTrue (os .path .exists (dir_path ))
72
74
self .assertIsNotNone (only_file_name )
75
+ self .assertEqual (only_file_name , file_name )
73
76
74
77
def test_path_with_file_name (self ):
75
78
"""
@@ -83,3 +86,4 @@ def test_path_with_file_name(self):
83
86
dir_path , only_file_name = os .path .split (path )
84
87
self .assertTrue (os .path .exists (dir_path ))
85
88
self .assertEqual (only_file_name , 'test_export.csv' )
89
+ self .assertEqual (only_file_name , file_name )
0 commit comments