@patch('compass.hdsdiscovery.hdmanager.HDManager.get_sys_info')
    def test_is_valid_vendor(self, sys_info_mock):
        # non-exsiting vendor under vendors directory
        self.assertFalse(
            self.manager.is_valid_vendor(self.correct_host,
                                         self.correct_credential,
                                         'xxxx')
        )

        # No system description retrieved
        sys_info_mock.return_value = (None, 'TIMEOUT')
        self.assertFalse(
            self.manager.is_valid_vendor(self.correct_host,
                                         self.correct_credential,
                                         'pica8')
        )

        # Incorrect vendor name
        sys_info = 'Pica8 XorPlus Platform Software'
        sys_info_mock.return_value = (sys_info, '')
        self.assertFalse(
            self.manager.is_valid_vendor(self.correct_host,
                                         self.correct_credential,
                                         'huawei')
        )

        # Correct vendor name
        self.assertTrue(
            self.manager.is_valid_vendor(self.correct_host,
                                         self.correct_credential,
                                         'pica8')
        )
menu_items() -> tuple of (str,function)
dataset/ETHPy150Open openstack/compass-core/compass/tests/hdsdiscovery/test_hdsdiscovery.py/HDManagerTest.test_is_valid_vendor--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/pythonCalcQt/init.py/menu_items