예제 #1
0
파일: test_hacking.py 프로젝트: rvbaz/rally
    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
파일: test_hacking.py 프로젝트: sapcc/rally
    def test_check_using_unicode(self, line):

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