Skip to content

Commit 2c73f30

Browse files
committed
assertEqual is deprecated
1 parent 6a8bf73 commit 2c73f30

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

sasstests.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ def test_output_styles(self):
7777
assert 'nested' in sass.OUTPUT_STYLES
7878

7979
def test_and_join(self):
80-
self.assertEquals(
80+
self.assertEqual(
8181
'Korea, Japan, China, and Taiwan',
8282
sass.and_join(['Korea', 'Japan', 'China', 'Taiwan'])
8383
)
84-
self.assertEquals(
84+
self.assertEqual(
8585
'Korea, and Japan',
8686
sass.and_join(['Korea', 'Japan'])
8787
)
88-
self.assertEquals('Korea', sass.and_join(['Korea']))
89-
self.assertEquals('', sass.and_join([]))
88+
self.assertEqual('Korea', sass.and_join(['Korea']))
89+
self.assertEqual('', sass.and_join([]))
9090

9191

9292
class CompileTestCase(unittest.TestCase):
@@ -310,17 +310,17 @@ def test_wsgi_sass_middleware(self):
310310
})
311311
client = Client(app, Response)
312312
r = client.get('/asdf')
313-
self.assertEquals(200, r.status_code)
314-
self.assertEquals(b'/asdf', r.data)
315-
self.assertEquals('text/plain', r.mimetype)
313+
self.assertEqual(200, r.status_code)
314+
self.assertEqual(b'/asdf', r.data)
315+
self.assertEqual('text/plain', r.mimetype)
316316
r = client.get('/static/a.sass.css')
317-
self.assertEquals(200, r.status_code)
318-
self.assertEquals(b(A_EXPECTED_CSS_WITH_MAP), r.data)
319-
self.assertEquals('text/css', r.mimetype)
317+
self.assertEqual(200, r.status_code)
318+
self.assertEqual(b(A_EXPECTED_CSS_WITH_MAP), r.data)
319+
self.assertEqual('text/css', r.mimetype)
320320
r = client.get('/static/not-exists.sass.css')
321-
self.assertEquals(200, r.status_code)
322-
self.assertEquals(b'/static/not-exists.sass.css', r.data)
323-
self.assertEquals('text/plain', r.mimetype)
321+
self.assertEqual(200, r.status_code)
322+
self.assertEqual(b'/static/not-exists.sass.css', r.data)
323+
self.assertEqual('text/plain', r.mimetype)
324324
finally:
325325
shutil.rmtree(css_dir)
326326

0 commit comments

Comments
 (0)