[SOLVED] 编程辅导 import unittest

30 $

File Name: 编程辅导_import_unittest.zip
File Size: 263.76 KB

SKU: 6046202297 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


import unittest

from make_website import *

Copyright By PowCoder代写加微信 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
30 $