From 140398e1015ca32c8f0a3256a3f24f6e2900cd71 Mon Sep 17 00:00:00 2001 From: Rustam Zaitov Date: Mon, 28 Oct 2013 02:26:49 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=80=D1=83=D1=87=D0=BD=D0=BE=D0=B9=20=D1=82=D0=B5=D1=81=D1=82?= =?UTF-8?q?=20=D0=BD=D0=B0=20=D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D1=83=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BF=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ManualTests/copy_test.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripts/ManualTests/copy_test.py diff --git a/scripts/ManualTests/copy_test.py b/scripts/ManualTests/copy_test.py new file mode 100644 index 0000000..3fb73c2 --- /dev/null +++ b/scripts/ManualTests/copy_test.py @@ -0,0 +1,16 @@ +from CommandBuilders.CopyCommandBuilder import CopyCommandBuilder +from ManualTests.path_provider import PathProvider + +line1 = "copy 'BuildSample/BuildSample.sln' to 'BuildSample/BuildSample.txt'" +line2 = "copy 'BuildSample/BuildSample.sln' to '~/tmp/BuildSample.sln'" + +baseDir = '../' +path_provider = PathProvider(baseDir) + +copyCmdBuilder = CopyCommandBuilder(path_provider) + +copyCmdToRel = copyCmdBuilder.getCommandFor(line1) +copyCmdToRel.execute() + +copyCmdToAbs = copyCmdBuilder.getCommandFor(line2) +copyCmdToAbs.execute()