File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -120,15 +120,24 @@ def test_find_dirs_files_with_regex(self):
120
120
121
121
self .assertEqual (actual_output .getvalue (), theoretical_output .getvalue ())
122
122
123
- def test_type_works_with_name_specified (self ):
123
+ def test_type_works_with_regex_specified (self ):
124
124
global tmp_dir
125
125
actual_output = find .do_search (tmp_dir , 'a' , None , 'f' )
126
126
127
- theorectical_output = io .StringIO ()
127
+ theoretical_output = io .StringIO ()
128
128
print (os .path .join (tmp_dir , 'abc123.txt' ), file = theoretical_output )
129
129
130
130
self .assertEqual (actual_output .getvalue (), theoretical_output .getvalue ())
131
131
132
+ def test_type_works_with_name_specified (self ):
133
+ global tmp_dir
134
+ actual_output = find .do_search (tmp_dir , None , 'a' , 'd' )
135
+
136
+ theoretical_output = io .StringIO ()
137
+ print (os .path .join (tmp_dir , 'a' ), file = theoretical_output )
138
+
139
+ self .assertEqual (actual_output .getvalue (), theoretical_output .getvalue ())
140
+
132
141
133
142
def tearDown (self ):
134
143
global tmp_dir_previously_existed
You can’t perform that action at this time.
0 commit comments