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

Class TestTranslationUnit

source code

Known Subclasses:

Tests a TranslationUnit. Derived classes can reuse these tests by pointing UnitClass to a derived Unit

Nested Classes [hide private]
  UnitClass
Base class for translation units.
Instance Methods [hide private]
 
setup_method(self, method) source code
 
test_isfuzzy(self)
Test that we can call isfuzzy() on a unit.
source code
 
test_create(self)
tests a simple creation with a source string
source code
 
test_eq(self)
tests equality comparison
source code
 
test_target(self) source code
 
test_escapes(self)
Test all sorts of characters that might go wrong in a quoting and escaping roundtrip.
source code
 
test_difficult_escapes(self)
Test difficult characters that might go wrong in a quoting and escaping roundtrip.
source code
 
test_note_sanity(self)
Tests that all subclasses of the base behaves consistently with regards to notes.
source code
Method Details [hide private]

test_isfuzzy(self)

source code 

Test that we can call isfuzzy() on a unit.

The default return value for isfuzzy() should be False.