def test_redefinedIf(self):
        self.flakes('''
        i = 2
        if i==1:
            import os
            import os
        os.path''', m.RedefinedWhileUnused)
Test that importing a module twice within an if
dataset/ETHPy150Open patrys/PythonChecker/pyflakes/test/test_imports.py/Test.test_redefinedIf