コード例 #1
0
ファイル: test_quests.py プロジェクト: Alkalit/the-tale
    def _check_messages(self, quest_type, message):
        writer = Writer(type=quest_type, message=message, substitution={}, hero=self.hero)

        # print '--------'
        # print writer.journal_id()
        # print writer.diary_id()
        # print writer.action_id()

        self.assertTrue(writer.journal_id().upper() in LEXICON_KEY.index_name or
                        writer.diary_id().upper() in LEXICON_KEY.index_name or
                        writer.action_id().upper() in LEXICON_KEY.index_name)
コード例 #2
0
ファイル: test_quests.py プロジェクト: AtnesNess/the-tale
    def _check_messages(self, quest_type, message):
        writer = Writer(type=quest_type, message=message, substitution={}, hero=self.hero)

        # print '--------'
        # print writer.journal_id()
        # print writer.diary_id()
        # print writer.action_id()

        self.assertTrue(hasattr(LEXICON_KEY, writer.journal_id().upper()) or
                        hasattr(LEXICON_KEY, writer.diary_id().upper()) or
                        hasattr(LEXICON_KEY, writer.action_id().upper()))
コード例 #3
0
ファイル: test_quests.py プロジェクト: angru/the-tale
    def _check_messages(self, quest_type, message):
        writer = Writer(type=quest_type,
                        message=message,
                        substitution={},
                        hero=self.hero)

        # print '--------'
        # print writer.journal_id()
        # print writer.diary_id()
        # print writer.action_id()

        self.assertTrue(
            writer.journal_id().upper() in LEXICON_KEY.index_name
            or writer.diary_id().upper() in LEXICON_KEY.index_name
            or writer.action_id().upper() in LEXICON_KEY.index_name)