Пример #1
0
    def test_artifacts_attributes(self):
        ArtifactRecordPrototype.create(uuid='bandit_loot',
                                       level=1,
                                       utg_name=names.generator().get_test_name('artifact'),
                                       description='bandit loot description',
                                       type_=relations.ARTIFACT_TYPE.HELMET,
                                       power_type=relations.ARTIFACT_POWER_TYPE.NEUTRAL)

        loot = ArtifactPrototype(record_id=artifacts_storage.get_by_uuid('bandit_loot').id, level=1)

        self.assertFalse(loot.is_useless)
Пример #2
0
    def test_artifacts_attributes(self):
        ArtifactRecordPrototype.create(
            uuid='bandit_loot',
            level=1,
            utg_name=names.generator.get_test_name('artifact'),
            description='bandit loot description',
            type_=relations.ARTIFACT_TYPE.HELMET,
            power_type=relations.ARTIFACT_POWER_TYPE.NEUTRAL)

        loot = ArtifactPrototype(
            record_id=artifacts_storage.get_by_uuid('bandit_loot').id, level=1)

        self.assertFalse(loot.is_useless)