import unittest
from make_website import *
Copyright By Assignmentchef assignmentchef
class MakeWebsite_Test(unittest.TestCase):
def test_surround_block(self):
# test text with surrounding h1 tags
self.assertEqual(
Eagles
, surround_block(h1, Eagles))
# test text with surrounding h2 tags
self.assertEqual(
Red Sox
, surround_block(h2, Red Sox))
# test text with surrounding p tags
self.assertEqual(
Lorem ipsum dolor sit amet, consectetur +
adipiscing elit. Sed ac felis sit amet ante porta +
hendrerit at at urna.
,
surround_block(p, Lorem ipsum dolor sit amet, consectetur +
adipiscing elit. Sed ac felis sit amet ante porta +
hendrerit at at urna.))
def test_create_email_link(self):
# test email with @ sign
self.assertEqual(
# test email with @ sign
self.assertEqual(
# test email without @ sign
self.assertEqual(
lbrandon.at.seas.upenn.edu,
create_email_link(lbrandon.at.seas.upenn.edu)
if __name__ == __main__:
unittest.main()
CS: assignmentchef QQ: 1823890830 Email: [email protected]
Reviews
There are no reviews yet.