Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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))