Ejemplo n.º 1
0
    def test_delete_file_doesnt_exist(self):
        """
        Tests that deleting when the file doesn't exist does *not* throw an error.
        """

        # Setup
        self.assertTrue(not os.path.exists(TEST_MIRROR_LIST_FILENAME))

        # Test
        mirror_list = MirrorListFile(TEST_MIRROR_LIST_FILENAME)
        mirror_list.delete()