def test_asset_to_dict(self): native = Asset('XLM') assert native.to_dict() == {'code': 'XLM', 'type': 'native'} assert self.cny.to_dict() == { 'code': 'CNY', 'issuer': self.source, 'type': 'credit_alphanum4' }