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)