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

This commit is contained in:
rzaitov 2013-11-14 20:08:44 +04:00
parent cf255b7b1b
commit b183e05da0
2 changed files with 12 additions and 0 deletions

View File

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

View File

@ -0,0 +1,11 @@
import unittest
from utils.XmlPatcher import XmlPatcher
class TestXmlPatcher(unittest.TestCase):
def setUp(self):
self.patcher = XmlPatcher('somePath')
def test_getNameWithNs(self):
name = self.patcher.getNameWithNs('OriginalName', 'http://namespace')
self.assertEqual('{http://namespace}OriginalName', name)