Exemplo n.º 1
0
 def test_unused_import_line_numbers_with_dot(self):
     self.assertEqual([1],
                      list(
                          autoflake.unused_import_line_numbers(
                              autoflake.check('import os.path\n'))))
Exemplo n.º 2
0
 def test_unused_import_line_numbers_with_dot(self):
     self.assertEqual(
         [1],
         list(autoflake.unused_import_line_numbers(
             autoflake.check('import os.path\n'))))
Exemplo n.º 3
0
 def test_unused_import_line_numbers_with_from(self):
     self.assertEqual([1],
                      list(
                          autoflake.unused_import_line_numbers(
                              autoflake.check('from os import path\n'))))
Exemplo n.º 4
0
 def test_unused_import_line_numbers_with_from(self):
     self.assertEqual(
         [1],
         list(autoflake.unused_import_line_numbers(
             autoflake.check('from os import path\n'))))