Skip to content

Commit cece596

Browse files
committed
test: iter in AssetList
1 parent 85a315d commit cece596

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_asset_list.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def test_repr(self):
4141
def test_len(self):
4242
assert self.asset_list.__len__() == 2
4343

44+
def test_iter(self):
45+
tickers = [asset.symbol for asset in self.asset_list]
46+
assert tickers == ["RUB.FX", "MCFTR.INDX"]
47+
4448
def test_tickers(self):
4549
assert self.asset_list_with_portfolio.tickers == ["pf1", "RUB", "MCFTR"]
4650

0 commit comments

Comments
 (0)