class TestPrintFileInfo(unittest.TestCase): def setUp(self): self.action = PrintFileInfo() def test_file_does_not_exist(self): # Should continue processing, even if it tries to perform action and can't. self.assertEqual(self.action.do_action('this_file_does_not_exist.txt'), 'this_file_does_not_exist.txt')
class TestPrintFileInfo(unittest.TestCase): def setUp(self): self.action = PrintFileInfo() def test_file_does_not_exist(self): # Should continue processing, even if it tries to perform action and can't. self.assertEqual(self.action.do_action('this_file_does_not_exist.txt'), 'this_file_does_not_exist.txt')
def setUp(self): self.action = PrintFileInfo()
def setUp(self): self.action = PrintFileInfo()