Supplement a unit test case for 'get_items'
the test case for api.xmlutil Change-Id: I51a3c26c48c8e0979e79b7313f5d812c6c9b0589
This commit is contained in:
parent
5741ade9d7
commit
ef559935f9
@ -20,3 +20,7 @@ class TestXmlUtil(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.xmlutil = xmlutil
|
||||
super(TestXmlUtil, self).setUp()
|
||||
|
||||
def test_get_items(self):
|
||||
result = self.xmlutil.get_items({'test1': 1, 'test2': '2'})
|
||||
self.assertEqual(result, [('test1', 1), ('test2', '2')])
|
||||
|
Loading…
x
Reference in New Issue
Block a user