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 add(a,b):
return a+b
Given the unit test
script_test.py code:
import script import unittest
class Test_Script:
def test_add(self):
self.assertEqual(script.add(2,3),5)
What is missing from the unit test script_test.py?
Test_Script class does not implment unittest.TestCase
TestScript class does not import math
add function should be invoked using self [e.g. self.add (2,3)]
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!