Skip to content

Commit

Permalink
fixer xml test, too
Browse files Browse the repository at this point in the history
  • Loading branch information
examachine committed Feb 18, 2017
1 parent 129708e commit 9a6a3f7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/xmlexttests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright (C) 2005, TUBITAK/UEKAE
# -*- coding: utf-8 -*-
## Copyright (C) 2005, TUBITAK/UEKAE
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
Expand Down Expand Up @@ -31,8 +32,9 @@ def testGet(self):
self.assertEqual(xmlext.getNodeText(self.doc, 'Number'), '868')
self.assertEqual(xmlext.getNodeText(self.doc, 'OtherInfo/BirthDate'), '18071976')
codeswith = xmlext.getAllNodes(self.doc, 'OtherInfo/CodesWith/Person')
self.assertEqual(len(codeswith), 4)
self.assertEqual(xmlext.getNodeText(codeswith[2]), 'Caglar')
self.assertEqual(len(codeswith), 5)
self.assertEqual(xmlext.getNodeText(codeswith[1]),
u'Çağlar')

def testAdd(self):
node = xmlext.newDocument('pardus')
Expand Down

0 comments on commit 9a6a3f7

Please sign in to comment.