Back to index

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

List of all members.

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 54 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.TestWikiAnalyzerSeveralWords.word = u'HelpOnMoinTesting OtherWikiWord' [static]

Reimplemented from test_wiki_analyzer.TestWikiAnalyzer.

Definition at line 56 of file

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

Reimplemented from test_wiki_analyzer.TestWikiAnalyzer.

Definition at line 57 of file

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