Example #1
0
def test_unequip_from_slot__fail_returns_False():
    e = Equipment()
    result = e.unequip_from_slot(slot="ARMOR")
    assert result == "The ARMOR slot is not equipped with anything!"
Example #2
0
def test_unequip_from_slot__armor(leather_armor):
    e = Equipment(leather_armor)
    e.unequip_from_slot(slot="ARMOR")
    assert e.slots['ARMOR'] is None
Example #3
0
def test_unequip_from_slot__msg(dagger):
    e = Equipment(dagger)
    result = e.unequip_from_slot(slot="WEAPON")
    assert result == 'You remove the dagger. '
Example #4
0
def test_unequip_from_slot__weapon(dagger):
    e = Equipment(dagger)
    e.unequip_from_slot(slot="WEAPON")
    assert e.slots['WEAPON'] is None