@@ -152,14 +152,14 @@ def test_splitext(self):
152152 self .assertEqual (splitext (".foo" ), (".foo" , "" ))
153153
154154 def test_recursepath (self ):
155- self .assertEquals (recursepath ("/" ), ["/" ])
156- self .assertEquals (recursepath ("hello" ), ["/" , "/hello" ])
157- self .assertEquals (recursepath ("/hello/world/" ), ["/" , "/hello" , "/hello/world" ])
158- self .assertEquals (
155+ self .assertEqual (recursepath ("/" ), ["/" ])
156+ self .assertEqual (recursepath ("hello" ), ["/" , "/hello" ])
157+ self .assertEqual (recursepath ("/hello/world/" ), ["/" , "/hello" , "/hello/world" ])
158+ self .assertEqual (
159159 recursepath ("/hello/world/" , reverse = True ), ["/hello/world" , "/hello" , "/" ]
160160 )
161- self .assertEquals (recursepath ("hello" , reverse = True ), ["/hello" , "/" ])
162- self .assertEquals (recursepath ("" , reverse = True ), ["/" ])
161+ self .assertEqual (recursepath ("hello" , reverse = True ), ["/hello" , "/" ])
162+ self .assertEqual (recursepath ("" , reverse = True ), ["/" ])
163163
164164 def test_isbase (self ):
165165 self .assertTrue (isbase ("foo" , "foo/bar" ))
@@ -178,7 +178,7 @@ def test_issamedir(self):
178178
179179 def test_isdotfile (self ):
180180 for path in [".foo" , ".svn" , "foo/.svn" , "foo/bar/.svn" , "/foo/.bar" ]:
181- self .assert_ (isdotfile (path ))
181+ self .assertTrue (isdotfile (path ))
182182
183183 for path in ["asfoo" , "df.svn" , "foo/er.svn" , "foo/bar/test.txt" , "/foo/bar" ]:
184184 self .assertFalse (isdotfile (path ))
@@ -201,10 +201,10 @@ def test_basename(self):
201201 self .assertEqual (basename (path ), test_basename )
202202
203203 def test_iswildcard (self ):
204- self .assert_ (iswildcard ("*" ))
205- self .assert_ (iswildcard ("*.jpg" ))
206- self .assert_ (iswildcard ("foo/*" ))
207- self .assert_ (iswildcard ("foo/{}" ))
204+ self .assertTrue (iswildcard ("*" ))
205+ self .assertTrue (iswildcard ("*.jpg" ))
206+ self .assertTrue (iswildcard ("foo/*" ))
207+ self .assertTrue (iswildcard ("foo/{}" ))
208208 self .assertFalse (iswildcard ("foo" ))
209209 self .assertFalse (iswildcard ("img.jpg" ))
210210 self .assertFalse (iswildcard ("foo/bar" ))
0 commit comments