Package translate :: Package storage :: Module test_dtd :: Class TestDTD
[hide private]
[frames] | no frames]

Class TestDTD

source code

   test_base.TestTranslationStore --+    
                                    |    
test_monolingual.TestMonolingualStore --+
                                        |
                                       TestDTD

Nested Classes [hide private]
  StoreClass
this class represents a .dtd file, made up of dtdunits
Instance Methods [hide private]
 
dtdparse(self, dtdsource)
helper that parses dtd source without requiring files
source code
 
dtdregen(self, dtdsource)
helper that converts dtd source to dtdfile object and back
source code
 
test_simpleentity(self)
checks that a simple dtd entity definition is parsed correctly
source code
 
test_blanklines(self)
checks that blank lines don't break the parsing or regeneration
source code
 
test_simpleentity_source(self)
checks that a simple dtd entity definition can be regenerated as source
source code
 
test_hashcomment_source(self)
checks that a #expand comment is retained in the source
source code
 
test_commentclosing(self)
tests that comment closes with trailing space aren't duplicated
source code
 
test_commententity(self)
check that we don't process messages in <!-- comments -->: bug 102
source code
 
test_newlines_in_entity(self)
tests that we can handle newlines in the entity itself
source code
 
test_conflate_comments(self)
Tests that comments don't run onto the same line
source code
 
test_localisation_notes(self)
test to ensure that we retain the localisation note correctly
source code
 
test_entitityreference_in_source(self)
checks that an &entity; in the source is retained
source code
 
wtest_comment_following(self)
check that comments that appear after and entity are not pushed onto another line
source code
 
test_comment_newline_space_closing(self)
check that comments that are closed by a newline then space then --> don't break the following entries
source code
 
test_invalid_quoting(self)
checks that invalid quoting doesn't work - quotes can't be reopened
source code
 
test_missing_quotes(self)
test that we fail graacefully when a message without quotes is found (bug #161)
source code

Inherited from test_monolingual.TestMonolingualStore: test_markup, test_nonascii, test_translate

Inherited from test_base.TestTranslationStore: check_equality, reparse, setup_method, teardown_method, test_add, test_create_blank, test_files, test_find, test_parse, test_save