def test_analyze_processed_response(self):
        for word in self.VALID_WORDS:
            analyzer = InterjectionMorphologicalAnalyzer(word)
            analyzer.analyze()

            assert analyzer.analyze() is None
            assert analyzer.analyze() is None
    def test_analyze_word(self):
        for word in self.VALID_WORDS:
            analyzer = InterjectionMorphologicalAnalyzer(word)
            analyzer.analyze()

            assert isinstance(analyzer.word, Interjection)
            assert analyzer.word.content == word
    def test_analyze_processed(self):
        for word in self.VALID_WORDS:
            analyzer = InterjectionMorphologicalAnalyzer(word)

            assert analyzer.processed is False

            analyzer.analyze()

            assert analyzer.processed is True
    def test_analyze_return_true(self):
        for word in self.VALID_WORDS:
            analyzer = InterjectionMorphologicalAnalyzer(word)

            assert analyzer.analyze()
    def test_analyze_match(self):
        for word in self.VALID_WORDS:
            analyzer = InterjectionMorphologicalAnalyzer(word)
            analyzer.analyze()

            assert analyzer.matches is not None
    def test_prepositions_list(self):
        for word in InterjectionMorphologicalAnalyzer.INTERJECTIONS_LIST:
            analyzer = InterjectionMorphologicalAnalyzer(word)

            assert analyzer.analyze()
    def test_invalid_analyze_word(self):
        for word in self.INVALID_WORDS:
            analyzer = InterjectionMorphologicalAnalyzer(word)
            analyzer.analyze()

            assert analyzer.word is None
    def test_invalid_analyze(self):
        for word in self.INVALID_WORDS:
            analyzer = InterjectionMorphologicalAnalyzer(word)
            result = analyzer.analyze()

            assert not result