
Set up the parser.

  >>> from tests import *
  >>> from smart.backends.rpm.updateinfo import RPMUpdateInfo
  >>> localpath = "%s/rpm/repodata/updateinfo.xml" % TESTDATADIR
  >>> baseurl = "file://%s" % localpath
  >>> updateinfo = RPMUpdateInfo(localpath)
  >>> updateinfo.load()
  
  >>> updateinfo.getErrataFlags()
  {'name2=version2-release2@noarch': 'bugfix', 'name1=version1-release1@noarch': 'bugfix'}
  >>> updateinfo.setErrataFlags()
  
This should give us one test "update" with data we already know.

  >>> pkgconf.getFlagNames()
  ['bugfix']
  >>> sorted(pkgconf.getFlagTargets('bugfix'))
  ['name1', 'name2']

