Answered step by step
Verified Expert Solution
Link Copied!

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
* note : cannot use print ( ) as i need to show the self. assert_
image text in transcribed
image text in transcribed
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}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Describe how to train managers to coach employees. page 404

Answered: 1 week ago

Question

Discuss the steps in the development planning process. page 381

Answered: 1 week ago