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