编程辅导 import unittest

import unittest

from make_website import *

Copyright By PowCoder代写 加微信 powcoder

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代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com