def test_rm_letter__letter_not_in_item_dict__returns_False(dagger): pi = PlayerInventory(10) pi.add_inv_item(dagger) assert pi.rm_letter('b') is None
def test_rm_letter__letter_in_item_dict__returns_item(dagger): pi = PlayerInventory(10) pi.add_inv_item(dagger) assert pi.rm_letter('a') == dagger