Exemple #1
0
 def test_no_zerospace(self):
     unit = MockUnit(source=u'Foo')
     fix = RemoveZeroSpace()
     self.assertEqual(
         fix.fix_target(['Bar'], unit),
         ([u'Bar'], False)
     )
     self.assertEqual(
         fix.fix_target([u'Bar\u200b'], unit),
         ([u'Bar'], True)
     )
Exemple #2
0
 def test_no_zerospace(self):
     unit = MockUnit(source="Foo")
     fix = RemoveZeroSpace()
     self.assertEqual(fix.fix_target(["Bar"], unit), (["Bar"], False))
     self.assertEqual(fix.fix_target(["Bar\u200b"], unit), (["Bar"], True))