Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (18 sloc) 0.795 kb
#!/usr/bin/env python
from translate.storage import csvl10n
from translate.storage import test_base
class TestCSVUnit(test_base.TestTranslationUnit):
UnitClass = csvl10n.csvunit
class TestCSV(test_base.TestTranslationStore):
StoreClass = csvl10n.csvfile
def test_singlequoting(self):
"""Tests round trip on single quoting at start of string"""
store = self.StoreClass()
unit1 = store.addsourceunit("Test 'String'")
unit2 = store.addsourceunit("'Blessed' String")
unit3 = store.addsourceunit("'Quoted String'")
assert unit3.source == "'Quoted String'"
newstore = self.reparse(store)
self.check_equality(store, newstore)
assert store.units[2] == newstore.units[2]
assert str(store) == str(newstore)
Jump to Line
Something went wrong with that request. Please try again.