BuildScript/scripts/Tests/UnitTests/InstallProfile/test_installProfile.py

14 lines
486 B
Python

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)