1
0
Fork 0
forked from github/pelican

assertEquals is deprecated in favor of assertEqual

This commit is contained in:
Tshepang Lekhonkhobe 2013-10-06 16:15:43 +02:00
commit 67d3ab8883

View file

@ -193,17 +193,17 @@ class TestPage(unittest.TestCase):
'<a href="|tag|tagname">link</a>')
page = Page(**args)
content = page.get_content('http://notmyidea.org')
self.assertEquals(content, ('A simple test, with a '
'<a href="tag/tagname.html">link</a>'))
self.assertEqual(content, ('A simple test, with a '
'<a href="tag/tagname.html">link</a>'))
# Category
args['content'] = ('A simple test, with a '
'<a href="|category|category">link</a>')
page = Page(**args)
content = page.get_content('http://notmyidea.org')
self.assertEquals(content,
('A simple test, with a '
'<a href="category/category.html">link</a>'))
self.assertEqual(content,
('A simple test, with a '
'<a href="category/category.html">link</a>'))
def test_intrasite_link(self):
# type does not take unicode in PY2 and bytes in PY3, which in
@ -222,7 +222,7 @@ class TestPage(unittest.TestCase):
'<a href="|filename|article.rst">link</a>'
)
content = Page(**args).get_content('http://notmyidea.org')
self.assertEquals(
self.assertEqual(
content,
'A simple test, with a '
'<a href="http://notmyidea.org/article.html">link</a>'
@ -234,7 +234,7 @@ class TestPage(unittest.TestCase):
'<a href="|filename|article.rst#section-2">link</a>'
)
content = Page(**args).get_content('http://notmyidea.org')
self.assertEquals(
self.assertEqual(
content,
'A simple test, with a '
'<a href="http://notmyidea.org/article.html#section-2">link</a>'
@ -247,7 +247,7 @@ class TestPage(unittest.TestCase):
'?utm_whatever=234&highlight=word">link</a>'
)
content = Page(**args).get_content('http://notmyidea.org')
self.assertEquals(
self.assertEqual(
content,
'A simple test, with a '
'<a href="http://notmyidea.org/article.html'
@ -261,7 +261,7 @@ class TestPage(unittest.TestCase):
'?utm_whatever=234&highlight=word#section-2">link</a>'
)
content = Page(**args).get_content('http://notmyidea.org')
self.assertEquals(
self.assertEqual(
content,
'A simple test, with a '
'<a href="http://notmyidea.org/article.html'