I want to call a method of class in another file, the class is using unittest.Testcase. You can find example snippet below,
class Introduction(unittest.TestCase):
def test_case1(self):
print "test 1"
def test_case2(self):
print "test 2"
if__name__=="main"
unittest.main()
Here i can able to call the entire class by using below logic
introduction = unittest.TestLoader().loadTestsFromTestCase(Introduction)
unittest.TextTestRunner(verbosity=3).run(introduction)
but i want call a single test_case2 method in another file, can you please help me out.
Thanks in advance, Ranjith