Example #1
0
 def test_zerospace(self):
     unit = MockUnit(source='Foo\u200b')
     fix = RemoveZeroSpace()
     self.assertEqual(
         fix.fix_target(['Bar'], unit),
         (['Bar'], False)
     )
     self.assertEqual(
         fix.fix_target(['Bar\u200b'], unit),
         (['Bar\u200b'], False)
     )
Example #2
0
 def test_no_zerospace(self):
     unit = Unit(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)
     )
Example #3
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)
     )
Example #4
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))
Example #5
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))