Files
my-botty/test/transmute/inventory_test.py
T
Vladimir MakaevandVladimir Makayev 6b1e155197 Support Gem Transmuting (#491)
Co-authored-by: Vladimir Makayev
2022-02-04 17:58:41 -05:00

15 lines
351 B
Python

from transmute import InventoryCollection
class TestInventory:
def test_inventory(self):
x = InventoryCollection()
x.append("Gem1", (2, 3))
assert(x.count() == 1)
x.append("Gem2", (2, 4))
assert(x.count() == 2)
x.pop("Gem2")
assert(x.count() == 1)
assert(x.count_by("Gem2") == 0)