예제 #1
0
 def test_extract_package_name_should_ignore_doctest_for_now(self):
     self.assertFalse(autoflake.extract_package_name('>>> import os'))
예제 #2
0
 def test_extract_package_name_should_ignore_doctest_for_now(self):
     self.assertFalse(autoflake.extract_package_name('>>> import os'))
예제 #3
0
 def test_extract_package_name(self):
     self.assertEqual('os', autoflake.extract_package_name('import os'))
     self.assertEqual('os',
                      autoflake.extract_package_name('from os import path'))
     self.assertEqual('os',
                      autoflake.extract_package_name('import os.path'))
예제 #4
0
 def test_extract_package_name(self):
     self.assertEqual('os', autoflake.extract_package_name('import os'))
     self.assertEqual(
         'os', autoflake.extract_package_name('from os import path'))
     self.assertEqual(
         'os', autoflake.extract_package_name('import os.path'))