Back to index

moin  1.9.0~rc2
Classes | Public Member Functions | Public Attributes | Static Public Attributes
test_wiki_analyzer.TestWikiAnalyzerStemmedSeveralWords Class Reference
Inheritance diagram for test_wiki_analyzer.TestWikiAnalyzerStemmedSeveralWords:
Inheritance graph
Collaboration diagram for test_wiki_analyzer.TestWikiAnalyzerStemmedSeveralWords:
Collaboration graph

List of all members.


class  Config

Public Member Functions

def setup_class
def test_tokenize

Public Attributes


Static Public Attributes

string word = u'HelpOnMoinTesting OtherWikiWord'
dictionary words

Detailed Description

Definition at line 68 of file

Member Function Documentation

Definition at line 26 of file

00027     def setup_class(self):
00028         self.analyzer = WikiAnalyzer(request=self.request, language=self.request.cfg.language_default)

Definition at line 29 of file

00030     def test_tokenize(self):
00031         words = self.words
00032         tokens = list(self.analyzer.tokenize(self.word))
00034         assert len(tokens) == len(words)
00036         for token, stemmed in tokens:
00037             assert token in words
00038             assert words[token] == stemmed

Member Data Documentation

Definition at line 27 of file

string test_wiki_analyzer.TestWikiAnalyzerStemmedSeveralWords.word = u'HelpOnMoinTesting OtherWikiWord' [static]

Reimplemented from test_wiki_analyzer.TestWikiAnalyzer.

Definition at line 70 of file

Initial value:
{u'helponmointesting': u'helponmointest',
             u'help': u'',
             u'on': u'',
             u'moin': u'',
             u'testing': u'test',
             u'otherwikiword': u'',
             u'other': u'',
             u'wiki': u'',
             u'word': u''}

Reimplemented from test_wiki_analyzer.TestWikiAnalyzer.

Definition at line 71 of file

The documentation for this class was generated from the following file: