

def test_xml(self):
    import recurly
    account = recurly.Account()
    account.username = 'importantbreakfast'
    account_xml = ElementTree.tostring(account.to_element(), encoding='UTF-8')
    self.assertEqual(account, xml('<account><username>importantbreakfast</username></account>'))

dataset/ETHPy150Open recurly/recurly-client-python/tests/test_recurly.py TestRecurly.test_xml/VarMisuse@48/67 `account_xml`->`account`