Beispiel #1
0
    def test_starting_skills(self):
        """
        test starting skill rank
        :return:
        """

        # set starting skill
        api.character.skills.add_starting_skill('test_skill_1', rank=1)

        # create snapshot
        snap = CharacterSnapshot(api.character.model())

        self.assertEqual(1, snap.get_skill_rank('test_skill_1'))
        self.assertEqual(0, snap.get_skill_rank('test_skill_2'))
    def test_starting_skills(self):
        """
        test starting skill rank
        :return:
        """

        # set starting skill
        api.character.skills.add_starting_skill('test_skill_1', rank=1)

        # create snapshot
        snap = CharacterSnapshot(api.character.model())

        self.assertEqual(1, snap.get_skill_rank('test_skill_1'))
        self.assertEqual(0, snap.get_skill_rank('test_skill_2'))
    def test_purchased_skills(self):
        """
        test purchased skill rank
        :return:
        """

        # purchase skill rank
        self.assertTrue(
            api.character.skills.purchase_skill_rank('test_skill_2'))

        # create snapshot
        snap = CharacterSnapshot(api.character.model())

        self.assertEqual(0, snap.get_skill_rank('test_skill_1'))
        self.assertEqual(1, snap.get_skill_rank('test_skill_2'))
Beispiel #4
0
    def test_purchased_skills(self):
        """
        test purchased skill rank
        :return:
        """

        # purchase skill rank
        self.assertTrue(
            api.character.skills.purchase_skill_rank('test_skill_2'))

        # create snapshot
        snap = CharacterSnapshot(api.character.model())

        self.assertEqual(0, snap.get_skill_rank('test_skill_1'))
        self.assertEqual(1, snap.get_skill_rank('test_skill_2'))