@@ -0,0 +1,1146 @@
+import os%0Aimport subprocess%0Aimport shutil%0A%0Afrom .. import *%0Afrom doppel import makedirs%0A%0A%0Aclass TestCopyParents(unittest.TestCase):%0A    def setUp(self):%0A        self.stage = os.path.join(test_stage_dir, 'copy_parents')%0A        if os.path.exists(self.stage):%0A            shutil.rmtree(os.path.join(self.stage))%0A        makedirs(self.stage)%0A        os.chdir(test_data_dir)%0A%0A    def test_parents_only(self):%0A        dst = os.path.join(self.stage, 'dir', 'subdir')%0A        subprocess.check_call(%5B'doppel', '-p', dst%5D)%0A        assertDirectory(self.stage, %7B%0A            'dir',%0A            'dir/subdir',%0A        %7D)%0A%0A    def test_parents_onto(self):%0A        dst = os.path.join(self.stage, 'dir', 'file.txt')%0A        subprocess.check_call(%5B'doppel', '-p', 'file.txt', dst%5D)%0A        assertDirectory(self.stage, %7B%0A            'dir',%0A            'dir/file.txt',%0A        %7D)%0A%0A    def test_parents_into(self):%0A        dst = os.path.join(self.stage, 'dir', 'subdir')%0A        subprocess.check_call(%5B'doppel', '-ip', 'file.txt', dst%5D)%0A        assertDirectory(self.stage, %7B%0A            'dir',%0A            'dir/subdir',%0A            'dir/subdir/file.txt',%0A        %7D)%0A

Add tests for --parents