def test_check_using_unicode(self): checkres = checks.check_using_unicode("text = unicode('sometext')", "fakefile") self.assertIsNotNone(next(checkres)) self.assertEqual([], list(checkres)) checkres = checks.check_using_unicode("text = process(unicode('sometext'))", "fakefile") self.assertIsNotNone(next(checkres)) self.assertEqual([], list(checkres))
def test_check_using_unicode(self): checkres = checks.check_using_unicode("text = unicode('sometext')", "fakefile") self.assertIsNotNone(next(checkres)) self.assertEqual([], list(checkres)) checkres = checks.check_using_unicode( "text = process(unicode('sometext'))", "fakefile") self.assertIsNotNone(next(checkres)) self.assertEqual([], list(checkres))
def test_check_using_unicode(self, line): checkres = checks.check_using_unicode(line, line, "fakefile") self.assertIsNotNone(next(checkres)) self.assertEqual([], list(checkres))