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)

Questions & AnswersCategory: Programming LanguageHow 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)
Adam asked 2 years ago

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. 1
b. 3
c. 0
d. 2