How many tests are run, when below code is tested using nose? import unittest def test_sample1(): assert 3 == 3 class SampleTestClass(unittest.TestCase): def test_sample2(self): self.assertEqual(3, 3)

Questions & AnswersCategory: Programming LanguageHow many tests are run, when below code is tested using nose? import unittest def test_sample1(): assert 3 == 3 class SampleTestClass(unittest.TestCase): def test_sample2(self): self.assertEqual(3, 3)
Adam asked 2 years ago

How many tests are run, when below code is tested using nose?

import unittest

def test_sample1():

    assert 3 == 3

class SampleTestClass(unittest.TestCase):

    def test_sample2(self):

        self.assertEqual(3, 3)

a. 3
b. 2
c. 1
d. 0