in Python by (5.2k points)

Q. How many tests are run, when below code is tested using unittest

import unittest

class SampleTestClass(unittest.TestCase):

    def sample_test1(self):

        self.assertEqual('HELLO', 'hello'.upper())

    def test_sample2(self):

        self.assertEqual(3*3, 9)

a) 2

b) 1 

c) 3

d) 0

1 Answer

0 votes
by (5.2k points)
Ans is

1

Related questions

+1 vote
asked Jul 16, 2020 in Python by GeorgeBell (5.2k points)
+1 vote
asked Jul 16, 2020 in Python by GeorgeBell (5.2k points)
0 votes
asked Jun 30, 2020 in Python by GeorgeBell (5.2k points)
...