api/ec2: make the parameter parser an independent method

Following the review, make the parser of argument items
an independent method for readability.
This commit is contained in:
Isaku Yamahata
2011-06-15 14:41:29 +09:00
parent 3126f990e7
commit 09da35f84d

View File

@@ -89,7 +89,7 @@ class FakeHttplibConnection(object):
class XmlConversionTestCase(test.TestCase):
"""Unit test api xml conversion"""
def test_number_conversion(self):
conv = apirequest._try_convert
conv = ec2utils._try_convert
self.assertEqual(conv('None'), None)
self.assertEqual(conv('True'), True)
self.assertEqual(conv('False'), False)