@mock.patch(DISCOVER % "%s.os")
    def test_load_plugins_from_nonexisting_and_empty_dir(self, mock_os):
        # test no fails for nonexisting directory
        mock_os.path.isdir.return_value = False
        discover.load_plugins("/somewhere")
        # test no fails for empty directory
        mock_os.path.isdir.return_value = True
        mock_os.walk.return_value = []
        discover.load_plugins("/somewhere")
dataset/ETHPy150Open openstack/rally/tests/unit/common/plugin/test_discover.py/LoadExtraModulesTestCase.test_load_plugins_from_nonexisting_and_empty_dir/swapped operands of `%`