Unverified Commit 3cc0f49b authored by Matheus Felipe's avatar Matheus Felipe
Browse files

Remove setUp method

parent bf4dfcd3
...@@ -7,8 +7,8 @@ from validate.links import find_links_in_text ...@@ -7,8 +7,8 @@ from validate.links import find_links_in_text
class TestValidateLinks(unittest.TestCase): class TestValidateLinks(unittest.TestCase):
def setUp(self): def test_find_link_in_text(self):
self.text = """ text = """
# this is valid # this is valid
http://example.com?param1=1&param2=2#anchor http://example.com?param1=1&param2=2#anchor
...@@ -28,9 +28,7 @@ class TestValidateLinks(unittest.TestCase): ...@@ -28,9 +28,7 @@ class TestValidateLinks(unittest.TestCase):
https//.com https//.com
""" """
links = find_links_in_text(text)
def test_find_link_in_text(self):
links = find_links_in_text(self.text)
self.assertIsInstance(links, list) self.assertIsInstance(links, list)
self.assertEqual(len(links), 7) self.assertEqual(len(links), 7)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment