Добавил тест для парсера установки профиля обеспечения
This commit is contained in:
parent
b3655673d4
commit
97c3e2a953
|
|
@ -0,0 +1 @@
|
|||
__author__ = 'rzaitov'
|
||||
|
|
@ -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)
|
||||
Loading…
Reference in New Issue