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
[legend]
Collaboration diagram for test_wiki_analyzer.TestWikiAnalyzerStemmedSeveralWords:
Collaboration graph
[legend]

List of all members.

Classes

class  Config

Public Member Functions

def setup_class
def test_tokenize

Public Attributes

 analyzer

Static Public Attributes

string word = u'HelpOnMoinTesting OtherWikiWord'
dictionary words

Detailed Description

Definition at line 68 of file test_wiki_analyzer.py.


Member Function Documentation

Definition at line 26 of file test_wiki_analyzer.py.

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

Definition at line 29 of file test_wiki_analyzer.py.

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


Member Data Documentation

Definition at line 27 of file test_wiki_analyzer.py.

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

Reimplemented from test_wiki_analyzer.TestWikiAnalyzer.

Definition at line 70 of file test_wiki_analyzer.py.

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 test_wiki_analyzer.py.


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