def test_extract_package_name_should_ignore_doctest_for_now(self): self.assertFalse(autoflake.extract_package_name('>>> import os'))
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'))
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'))