def test_get_asset_history(self, atom: Atom, asset: Asset): result_class = atom.get_asset_history(asset) assert isinstance(result_class, list) assert len(result_class) > 0 assert isinstance(result_class[0], Transfer) result_str = atom.get_asset_history(asset.get_id()) assert isinstance(result_str, list) assert len(result_str) > 0 assert isinstance(result_str[0], Transfer) assert result_class == result_str
def test_get_asset_not_found(self, atom: Atom): result = atom.get_asset_history("0") assert isinstance(result, list) assert len(result) == 0
def test_get_asset_param_check(self, atom: Atom): with pytest.raises(AtomicIDError): atom.get_asset_history("fail")