Package translate :: Package storage :: Module test_base :: Class TestTranslationStore
[hide private]
[frames] | no frames]

Class TestTranslationStore

source code

Known Subclasses:

Tests a TranslationStore. Derived classes can reuse these tests by pointing StoreClass to a derived Store

Nested Classes [hide private]
  StoreClass
Base class for stores for multiple translation units of type UnitClass.
Instance Methods [hide private]
 
setup_method(self, method)
Allocates a unique self.filename for the method, making sure it doesn't exist
source code
 
teardown_method(self, method)
Makes sure that if self.filename was created by the method, it is cleaned up
source code
 
test_create_blank(self)
Tests creating a new blank store
source code
 
test_add(self)
Tests adding a new unit with a source string
source code
 
test_find(self)
Tests searching for a given source string
source code
 
test_translate(self)
Tests the translate method and non-ascii characters.
source code
 
reparse(self, store)
converts the store to a string and back to a store again
source code
 
check_equality(self, store1, store2)
asserts that store1 and store2 are the same
source code
 
test_parse(self)
Tests converting to a string and parsing the resulting string
source code
 
test_files(self)
Tests saving to and loading from files
source code
 
test_save(self)
Tests that we can save directly back to the original file.
source code
 
test_markup(self)
Tests that markup survives the roundtrip.
source code
 
test_nonascii(self) source code
Method Details [hide private]

test_markup(self)

source code 

Tests that markup survives the roundtrip. Most usefull for xml types.