Tests a TranslationStore. Derived classes can reuse these tests by
pointing StoreClass to a derived Store
|
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
|
|
|
|
|
|