Ejemplo n.º 1
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')
Ejemplo n.º 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')
Ejemplo n.º 3
0
 def setUp(self):
     self.action = PrintFileInfo()
Ejemplo n.º 4
0
 def setUp(self):
     self.action = PrintFileInfo()