From 97c3e2a953d9da3507dc958c1d52965fda3186b2 Mon Sep 17 00:00:00 2001 From: rzaitov Date: Tue, 5 Nov 2013 16:20:55 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82=20=D0=B4=D0=BB=D1=8F=20=D0=BF=D0=B0?= =?UTF-8?q?=D1=80=D1=81=D0=B5=D1=80=D0=B0=20=D1=83=D1=81=D1=82=D0=B0=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=BA=D0=B8=20=D0=BF=D1=80=D0=BE=D1=84=D0=B8=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=BE=D0=B1=D0=B5=D1=81=D0=BF=D0=B5=D1=87=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/Tests/UnitTests/InstallProfile/__init__.py | 1 + .../InstallProfile/test_installProfile.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 scripts/Tests/UnitTests/InstallProfile/__init__.py create mode 100644 scripts/Tests/UnitTests/InstallProfile/test_installProfile.py diff --git a/scripts/Tests/UnitTests/InstallProfile/__init__.py b/scripts/Tests/UnitTests/InstallProfile/__init__.py new file mode 100644 index 0000000..cc31abc --- /dev/null +++ b/scripts/Tests/UnitTests/InstallProfile/__init__.py @@ -0,0 +1 @@ +__author__ = 'rzaitov' diff --git a/scripts/Tests/UnitTests/InstallProfile/test_installProfile.py b/scripts/Tests/UnitTests/InstallProfile/test_installProfile.py new file mode 100644 index 0000000..56d0631 --- /dev/null +++ b/scripts/Tests/UnitTests/InstallProfile/test_installProfile.py @@ -0,0 +1,14 @@ +import unittest +from parser.InstallProfileParser import InstallProfileParser + + +class TestInstallProfile(unittest.TestCase): + def setUp(self): + self.parser = InstallProfileParser() + + def test_parse(self): + line = "install profile 'Path/To/Profile.mobileprovision'" + copyArgs = self.parser.parseLine(line) + + self.assertEqual('Path/To/Profile.mobileprovision', copyArgs.source) + self.assertEqual('~/Library/MobileDevice/Provisioning Profiles/Profile.mobileprovision', copyArgs.target) \ No newline at end of file