Добавил тест для парсера установки профиля обеспечения

This commit is contained in:
rzaitov 2013-11-05 16:20:55 +04:00
parent b3655673d4
commit 97c3e2a953
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1 @@
__author__ = 'rzaitov'

View File

@ -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)