code: def _parse_plugin_list(self, output):
          '''
          Remove Vagrant from the equation for unit testing.
          '''
          ENCODED_COMMA = '%!(VAGRANT_COMMA)'
  
          plugins = []
          # initialize plugin values
          name = None
          version = None
          system = False
          for timestamp, target, kind, data in self._parse_machine_readable_output(output):
              if kind == 'plugin-name':
                  # finish the previous plugin, if any
                  if name is not None:
                      plugins.append(Plugin(name=name, version=version, system=system))
  
                  # start a new plugin
                  name = data # plugin name
                  version = None
                  system = False
              elif kind == 'plugin-version':
                  if ENCODED_COMMA in data:
                      version, etc = data.split(ENCODED_COMMA)
                      system = (etc.strip().lower() == 'system')
                  else:
                      version = data
                      system = False
  
          # finish the previous plugin, if any
          if name is not None:
              plugins.append(Plugin(name=name, version=version, system=system))
  
          return pluginf _parse_plugin_list(self, output):
          '''
          Remove Vagrant from the equation for unit testing.
          '''
          ENCODED_COMMA = '%!(VAGRANT_COMMA)'
  
          plugins = []
          # initialize plugin values
          name = None
          version = None
          system = False
          for timestamp, target, kind, data in self._parse_machine_readable_output(output):
              if kind == 'plugin-name':
                  # finish the previous plugin, if any
                  if name is not None:
                      plugins.append(Plugin(name=name, version=version, system=system))
  
                  # start a new plugin
                  name = data # plugin name
                  version = None
                  system = False
              elif kind == 'plugin-version':
                  if ENCODED_COMMA in data:
                      version, etc = data.split(ENCODED_COMMA)
                      system = (etc.strip().lower() == 'system')
                  else:
                      version = data
                      system = False
  
          # finish the previous plugin, if any
          if name is not None:
              plugins.append(Plugin(name=name, version=version, system=system))
  
          return plugins
docs: Remove Vagrant from the equation for unit testing.