How many tests of sample_module.py shown below, are successfully passed, when run with nose? from nose.tools import raises class SampleTestClass: @raises(TypeError) def test_sample1(self): pow(2, '4') @raises(Execption) def test_sample2(self): max([7, 8, '4']) @raises(Exception) def test_sample3(self): int('hello')

Questions & AnswersCategory: Programming LanguageHow many tests of sample_module.py shown below, are successfully passed, when run with nose? from nose.tools import raises class SampleTestClass: @raises(TypeError) def test_sample1(self): pow(2, '4') @raises(Execption) def test_sample2(self): max([7, 8, '4']) @raises(Exception) def test_sample3(self): int('hello')
Adam asked 3 years ago

How many tests of sample_module.py shown below, are successfully passed, when run with nose?

from nose.tools import raises

class SampleTestClass:

    @raises(TypeError)

    def test_sample1(self):

        pow(2, '4')

   @raises(Execption)

    def test_sample2(self):

        max([7, 8, '4'])

    @raises(Exception)

    def test_sample3(self):

        int('hello')

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