예제 #1
0
def test_attribute_bonus__strength_with_weapon(dagger):
    e = Equipment(dagger)
    assert e.attribute_bonus('STRENGTH') == dagger.equippable.modifiers['STRENGTH']
예제 #2
0
def test_attribute_bonus__ac_with_armor(leather_armor):
    e = Equipment(leather_armor)
    assert e.attribute_bonus('AC') == leather_armor.equippable.modifiers['AC']
예제 #3
0
def test_attribute_bonus__strength_default_is_0():
    e = Equipment()
    assert e.attribute_bonus('STRENGTH') == 0
예제 #4
0
def test_attribute_bonus__ac_default_is_0():
    e = Equipment()
    assert e.attribute_bonus('AC') == 0