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) )
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) )
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) )
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))