File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 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):
120120
121121 self .assertEqual (actual_output .getvalue (), theoretical_output .getvalue ())
122122
123- def test_type_works_with_name_specified (self ):
123+ def test_type_works_with_regex_specified (self ):
124124 global tmp_dir
125125 actual_output = find .do_search (tmp_dir , 'a' , None , 'f' )
126126
127- theorectical_output = io .StringIO ()
127+ theoretical_output = io .StringIO ()
128128 print (os .path .join (tmp_dir , 'abc123.txt' ), file = theoretical_output )
129129
130130 self .assertEqual (actual_output .getvalue (), theoretical_output .getvalue ())
131131
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+
132141
133142 def tearDown (self ):
134143 global tmp_dir_previously_existed
You can’t perform that action at this time.
0 commit comments