14 lines
486 B
Python
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) |