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')
示例#2
0
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')
示例#3
0
 def setUp(self):
     self.action = PrintFileInfo()
 def setUp(self):
     self.action = PrintFileInfo()