~ahasenack/smart/use-python-var-for-extension

« back to all changes in this revision

Viewing changes to tests/aptrpm.txt

  • Committer: Gustavo Niemeyer
  • Date: 2008-08-18 17:25:33 UTC
  • Revision ID: gustavo@niemeyer.net-20080818172533-al1agapgp5k1ncei
Fix lack of determinism in some of the doctests, as pointed out
by Christoph Thiel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
This should give us one package with the data we already know.
45
45
 
46
 
  >>> cache.getPackages()
 
46
  >>> packages = sorted(cache.getPackages())
 
47
  >>> packages
47
48
  [name1-version1-release1@noarch, name2-version2-release2@noarch]
48
49
 
49
 
  >>> pkg = cache.getPackages()[0]
 
50
  >>> pkg = packages[0]
50
51
  >>> type(pkg)
51
52
  <class 'smart.backends.rpm.base.RPMPackage'>
52
53