Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can someone please help to review my codes to pass the test in the unit test * note : cannot use print ( ) as
can someone please help to review my codes to pass the test in the unit test
foport unittest import isnakestats clast TestFxanplefunttest, festCase): def tent _addition_two positive_funters(self): x = snakestatis, add (2,3) self, assertEqual (x,5) def test_additian_three_numbers (self): x. = snakestats -add {2,4,5} self assertTruet (x,11) def test_addition_two_negative_nunbers(sedf): x= snakestats, add (1,2) self, assertis x,3. unittest eain(argvef igneted:, +p1. enitw Falire) x - makestrits addi-1, -2! \begin{tabular}{l|l} 1 & def add (a,b): \\ 2 & x=a+b \\ 3 & return x \\ 4 & \\ 5 & def add (a,b,c): \\ 6 & x=a+b+c \\ 7 & return x \end{tabular} * note : cannot use print ( ) as i need to show the self. assert_
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started