def test_quobyte_is_valid_volume(self, mock_execute, mock_access): mnt_base = '/mnt' quobyte_volume = '192.168.1.1/volume-00001' export_mnt_base = os.path.join(mnt_base, utils.get_hash_str(quobyte_volume)) quobyte.validate_volume(export_mnt_base) mock_execute.assert_called_once_with('getfattr', '-n', 'quobyte.info', export_mnt_base)