示例#1
0
    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))
示例#2
0
    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))
示例#3
0
    def test_check_using_unicode(self, line):

        checkres = checks.check_using_unicode(line, line, "fakefile")
        self.assertIsNotNone(next(checkres))
        self.assertEqual([], list(checkres))
示例#4
0
    def test_check_using_unicode(self, line):

        checkres = checks.check_using_unicode(line, line, "fakefile")
        self.assertIsNotNone(next(checkres))
        self.assertEqual([], list(checkres))