def test_is_proficient(self): """ Test that weapon proficiency of character can be checked """ creature = CharacterBuilder().build() weapon = (ItemBuilder().with_name('club').with_tag('weapon').with_tag( 'one-handed weapon').with_tag('melee').with_tag( 'simple weapon').with_damage( 2, 'bashing').with_weapon_type('simple').build()) proficiency = creature.is_proficient(weapon) assert_that(proficiency, is_(equal_to(False))) creature.feats.append(WeaponProficiency('simple')) proficiency = creature.is_proficient(weapon) assert_that(proficiency, is_(equal_to(True)))
def test_is_proficient(self): """ Test that weapon proficiency of character can be checked """ creature = CharacterBuilder().build() weapon = (ItemBuilder() .with_name('club') .with_tag('weapon') .with_tag('one-handed weapon') .with_tag('melee') .with_tag('simple weapon') .with_damage(2) .with_weapon_type('simple') .build()) proficiency = creature.is_proficient(weapon) assert_that(proficiency, is_(equal_to(False))) creature.feats.append(WeaponProficiency('simple')) proficiency = creature.is_proficient(weapon) assert_that(proficiency, is_(equal_to(True)))