mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
assertEquals is deprecated in favor of assertEqual
This commit is contained in:
parent
9657071301
commit
67d3ab8883
1 changed files with 9 additions and 9 deletions
|
|
@ -193,17 +193,17 @@ class TestPage(unittest.TestCase):
|
||||||
'<a href="|tag|tagname">link</a>')
|
'<a href="|tag|tagname">link</a>')
|
||||||
page = Page(**args)
|
page = Page(**args)
|
||||||
content = page.get_content('http://notmyidea.org')
|
content = page.get_content('http://notmyidea.org')
|
||||||
self.assertEquals(content, ('A simple test, with a '
|
self.assertEqual(content, ('A simple test, with a '
|
||||||
'<a href="tag/tagname.html">link</a>'))
|
'<a href="tag/tagname.html">link</a>'))
|
||||||
|
|
||||||
# Category
|
# Category
|
||||||
args['content'] = ('A simple test, with a '
|
args['content'] = ('A simple test, with a '
|
||||||
'<a href="|category|category">link</a>')
|
'<a href="|category|category">link</a>')
|
||||||
page = Page(**args)
|
page = Page(**args)
|
||||||
content = page.get_content('http://notmyidea.org')
|
content = page.get_content('http://notmyidea.org')
|
||||||
self.assertEquals(content,
|
self.assertEqual(content,
|
||||||
('A simple test, with a '
|
('A simple test, with a '
|
||||||
'<a href="category/category.html">link</a>'))
|
'<a href="category/category.html">link</a>'))
|
||||||
|
|
||||||
def test_intrasite_link(self):
|
def test_intrasite_link(self):
|
||||||
# type does not take unicode in PY2 and bytes in PY3, which in
|
# 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>'
|
'<a href="|filename|article.rst">link</a>'
|
||||||
)
|
)
|
||||||
content = Page(**args).get_content('http://notmyidea.org')
|
content = Page(**args).get_content('http://notmyidea.org')
|
||||||
self.assertEquals(
|
self.assertEqual(
|
||||||
content,
|
content,
|
||||||
'A simple test, with a '
|
'A simple test, with a '
|
||||||
'<a href="http://notmyidea.org/article.html">link</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>'
|
'<a href="|filename|article.rst#section-2">link</a>'
|
||||||
)
|
)
|
||||||
content = Page(**args).get_content('http://notmyidea.org')
|
content = Page(**args).get_content('http://notmyidea.org')
|
||||||
self.assertEquals(
|
self.assertEqual(
|
||||||
content,
|
content,
|
||||||
'A simple test, with a '
|
'A simple test, with a '
|
||||||
'<a href="http://notmyidea.org/article.html#section-2">link</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>'
|
'?utm_whatever=234&highlight=word">link</a>'
|
||||||
)
|
)
|
||||||
content = Page(**args).get_content('http://notmyidea.org')
|
content = Page(**args).get_content('http://notmyidea.org')
|
||||||
self.assertEquals(
|
self.assertEqual(
|
||||||
content,
|
content,
|
||||||
'A simple test, with a '
|
'A simple test, with a '
|
||||||
'<a href="http://notmyidea.org/article.html'
|
'<a href="http://notmyidea.org/article.html'
|
||||||
|
|
@ -261,7 +261,7 @@ class TestPage(unittest.TestCase):
|
||||||
'?utm_whatever=234&highlight=word#section-2">link</a>'
|
'?utm_whatever=234&highlight=word#section-2">link</a>'
|
||||||
)
|
)
|
||||||
content = Page(**args).get_content('http://notmyidea.org')
|
content = Page(**args).get_content('http://notmyidea.org')
|
||||||
self.assertEquals(
|
self.assertEqual(
|
||||||
content,
|
content,
|
||||||
'A simple test, with a '
|
'A simple test, with a '
|
||||||
'<a href="http://notmyidea.org/article.html'
|
'<a href="http://notmyidea.org/article.html'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue