def test_name_conflict(self):
        path = os.path.dirname(interfaces.__file__)
        create_dummy_interface(file_name='del_me_interface.py',
                               interface_name='test')

        error = False
        try:
            reload(interfaces)
        except __HOLE__:
            error = True
        os.remove(os.path.join(path, 'del_me_interface.py'))
        os.remove(os.path.join(path, 'del_me_interface.pyc'))
        ok_(error)
        reload(interfaces)  # clean up mess
dataset/ETHPy150Open KavenC/Linot/tests/interfaces/test_interfaces.py/TestIntrefaces.test_name_conflict