Esempio n. 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!"
Esempio n. 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
Esempio n. 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. '
Esempio n. 4
0
def test_unequip_from_slot__weapon(dagger):
    e = Equipment(dagger)
    e.unequip_from_slot(slot="WEAPON")
    assert e.slots['WEAPON'] is None