예제 #1
0
 def test_read_from_filename_with_bad_encoding2(self):
     """Bad encoding should not cause an exception."""
     self.assertTrue(autopep8.read_from_filename(
         os.path.join(ROOT_DIR, 'test', 'bad_encoding2.py')))
예제 #2
0
 def test_read_from_filename_with_bad_encoding2(self):
     """Bad encoding should not cause an exception."""
     self.assertTrue(
         autopep8.read_from_filename(
             os.path.join(ROOT_DIR, 'test', 'bad_encoding2.py')))
예제 #3
0
 def test_read_from_filename_with_bad_encoding(self):
     """Bad encoding should not cause an exception."""
     self.assertEqual(
         '# -*- coding: zlatin-1 -*-\n',
         autopep8.read_from_filename(
             os.path.join(ROOT_DIR, 'test', 'bad_encoding.py')))
예제 #4
0
 def test_read_from_filename_with_bad_encoding(self):
     """Bad encoding should not cause an exception."""
     self.assertEqual(
         '# -*- coding: zlatin-1 -*-\n',
         autopep8.read_from_filename(
             os.path.join(ROOT_DIR, 'test', 'bad_encoding.py')))