• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Python by
Q:

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

import unittest

def test_sample1():

    assert 3 == 3

class SampleTestClass(unittest.TestCase):

    def test_sample2(self):

        self.assertEqual(3, 3)

a). 2 ---

b). 1 

c). 3

d). 0 

1 Answer

0 votes
by
Ans is A

Related questions

+1 vote
asked Jul 16, 2020 in Python by GeorgeBell
+1 vote
asked Jul 16, 2020 in Python by GeorgeBell
...