BuildScript/scripts/UnitTests/ProjectSettings/test_AttribueSettings.py

16 lines
435 B
Python

import unittest
from parser.ProjectParser.Project import Project
from parser.ProjectParser.ProjectSetting.AttribureSetting import AttributeSetting
class TestCase(unittest.TestCase):
def setUp(self):
self.csproj = Project('appName')
def test_apply(self):
attr_value = 'parent_dir/child_dir'
setting = AttributeSetting('rel_path', attr_value)
setting.apply(self.csproj)
self.assertEqual(self.csproj.rel_path, attr_value)