5
sys.path.insert(0,"../")
7
from softwarecenter.utils import *
9
class TestSCUtils(unittest.TestCase):
10
""" tests the sc utils """
12
def test_encode(self):
13
xml = "What’s New"
14
python = u"What\u2019s New"
15
self.assertEqual(decode_xml_char_reference(xml), python)
17
#self.assertEqual(encode_for_xml(python), xml)
19
if __name__ == "__main__":
21
logging.basicConfig(level=logging.DEBUG)