コード例 #1
0
	def isInstallProfile(self, line):
		assert line is not None

		parser = InstallProfileParser()
		isValid = parser.isValidLine(line)

		return isValid
コード例 #2
0
	def getCommandFor(self, line):
		assert line is not None

		parser = InstallProfileParser()

		srcPath = parser.parseLine(line)
		dstPath = self.getDestinationPath(srcPath)

		cpArgs = CopyArguments()
		cpArgs.setArguments(srcPath, dstPath)

		command = CopyCommand(cpArgs)
		return command
コード例 #3
0
class TestInstallProfile(unittest.TestCase):
	def setUp(self):
		self.parser = InstallProfileParser()

	def test_parse(self):
		line = "install profile 'Path/To/Profile.mobileprovision'"
		src = self.parser.parseLine(line)

		self.assertEqual('Path/To/Profile.mobileprovision', src)
コード例 #4
0
	def setUp(self):
		self.parser = InstallProfileParser()