Package translate :: Package tools :: Module test_pocount :: Class TestPOCount
[hide private]
[frames] | no frames]

Class TestPOCount

source code

Instance Methods [hide private]
 
count(self, source, expectedsource, target=None, expectedtarget=None)
simple helper to check the respective word counts
source code
 
test_simple_count_zero(self)
no content
source code
 
test_simple_count_one(self)
simplest one word count
source code
 
test_simple_count_two(self)
simplest one word count
source code
 
test_punctuation_divides_words(self)
test that we break words when there is punctuation
source code
 
test_xml_tags(self)
test that we do not count XML tags as words
source code
 
test_newlines(self)
test to see that newlines divide words
source code
 
test_variables_are_words(self)
test that we count variables as words
source code
 
test_plurals(self)
test that we can handle plural PO elements
source code
 
test_plurals_kde(self)
test that we correcly count old style KDE plurals
source code
 
test_msgid_blank(self)
counts a message id
source code