"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "translate/storage/test_base.py" between
translate-toolkit-2.2.4.tar.gz and translate-toolkit-2.2.5.tar.gz

About: Translate Toolkit is a set of software and documentation designed to make localization of software more productive and less frustrating.

test_base.py  (translate-toolkit-2.2.4):test_base.py  (translate-toolkit-2.2.5)
skipping to change at line 84 skipping to change at line 84
assert unit1 == unit2 assert unit1 == unit2
assert unit1 != unit4 assert unit1 != unit4
unit1.target = "Stressed Ting" unit1.target = "Stressed Ting"
unit2.target = "Stressed Ting" unit2.target = "Stressed Ting"
unit5.target = "Stressed Bling" unit5.target = "Stressed Bling"
unit6.target = "Stressed Ting" unit6.target = "Stressed Ting"
assert unit1 == unit2 assert unit1 == unit2
assert unit1 != unit3 assert unit1 != unit3
assert unit4 != unit5 assert unit4 != unit5
if unit1.__class__.__name__ in ('RESXUnit', 'dtdunit', 'TxtUnit', if unit1.__class__.__name__ in ('RESXUnit', 'dtdunit', 'TxtUnit',
'JsonUnit', 'l20nunit', 'YAMLUnit'): 'JsonUnit', 'l20nunit', 'YAMLUnit',
'WebExtensionJsonUnit'):
# unit1 will generally equal unit6 for monolingual formats (resx, dt d, txt, l20n) # unit1 will generally equal unit6 for monolingual formats (resx, dt d, txt, l20n)
# with the default comparison method which compare units by their # with the default comparison method which compare units by their
# target and source properties only. # target and source properties only.
# For other monolingual formats: # For other monolingual formats:
# - AndroidResourceUnit is comparing units by their full xml seriali zation (overriden __eq__) # - AndroidResourceUnit is comparing units by their full xml seriali zation (overriden __eq__)
# - phpunit and propunit (properties) can have different source/targ et # - phpunit and propunit (properties) can have different source/targ et
# and are reunited when serializing through `self.translation or s elf.value` # and are reunited when serializing through `self.translation or s elf.value`
assert unit1 == unit6 assert unit1 == unit6
assert not(unit1 != unit6) assert not(unit1 != unit6)
else: else:
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)