Exemplo n.º 1
0
    def test_08(self):
        """
        Test Case 08:
        Test :py:meth:`magrathea.utils.file.File._check_file_exists` with an existing fs object not being a file.

        Test is passed if return value is False.
        """
        self.assertFalse(File._check_file_exists('/usr/sbin'))
Exemplo n.º 2
0
    def test_06(self):
        """
        Test Case 06:
        Test :py:meth:`magrathea.utils.file.File._check_file_exists` with an existing file (this file).

        Test is passed if return value is True.
        """
        self.assertTrue(File._check_file_exists(__file__))
Exemplo n.º 3
0
    def test_07(self):
        """
        Test Case 07:
        Test :py:meth:`magrathea.utils.file.File._check_file_exists` with a non-existing file.

        Test is passed if return value is True.
        """
        self.assertFalse(File._check_file_exists('/foobarstuffdirdoesntexist'))