def query_balances(self, save_data=False): if isinstance(save_data, str) and (save_data == 'save' or save_data == 'True'): save_data = True result = self.rotkehlchen.query_balances(save_data) print(pretty_json_dumps(result)) return process_result(result)
def test_pretty_json_dumps(): """Simply test that pretty json dumps also works. That means that sorting of all serializable assets is enabled""" result = pretty_json_dumps(data) assert result