[SOLVED] import unittest

$25

File Name: import_unittest.zip
File Size: 141.3 KB

5/5 - (1 vote)

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.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] import unittest
$25