Question: Given the script. py code: def add ( a , b ) : return a + b Given the unit test script _ test.py code:
Given the script. py code:
def addab:
return ab
Given the unit test
scripttest.py code:
import script import unittest
class TestScript:
def testaddself:
self.assertEqualscriptadd
What is missing from the unit test scripttest.py
TestScript class does not implment unittest.TestCase
TestScript class does not import math
add function should be invoked using self eg self.add
script.py does not import unittest module
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
