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

« back to all changes in this revision

Viewing changes to tests/rpmdir.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:
42
42
 
43
43
This should give us one package with the data we already know.
44
44
 
45
 
  >>> cache.getPackages()
 
45
  >>> packages = sorted(cache.getPackages())
 
46
  >>> packages
46
47
  [name1-version1-release1@noarch, name2-version2-release2@noarch]
47
48
 
48
 
  >>> pkg = cache.getPackages()[0]
 
49
  >>> pkg = packages[0]
49
50
  >>> type(pkg)
50
51
  <class 'smart.backends.rpm.base.RPMPackage'>
51
52