Back to index

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

List of all members.

Public Member Functions

def setup_class
def test_tokenize

Public Attributes


Static Public Attributes

string word = u'HelpOnMoinTesting'
dictionary words

Detailed Description

Definition at line 17 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.TestWikiAnalyzer.word = u'HelpOnMoinTesting' [static]

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