Misc includes a version command and is now loaded by default, so I had to disambiguate the version test.

This commit is contained in:
Jeremy Fincher 2003-10-27 08:48:04 +00:00
parent aab9d8a3a0
commit c150567565

View File

@ -48,8 +48,8 @@ class DebianTestCase(PluginTestCase, PluginDocumentation):
else:
print
print "Dowloading files, this may take awhile"
while not os.path.exists(os.path.join(conf.dataDir,
'Contents-i386.gz')):
filename = os.path.join(conf.dataDir, 'Contents-i386.gz')
while not os.path.exists(filename):
time.sleep(1)
print "Download complete"
print "Starting test ..."
@ -58,11 +58,12 @@ class DebianTestCase(PluginTestCase, PluginDocumentation):
pass
def testDebversion(self):
self.assertRegexp('version lakjdfad', r'^No package.*\(all\)')
self.assertRegexp('version unstable alkdjfad',
self.assertRegexp('debian version lakjdfad', r'^No package.*\(all\)')
self.assertRegexp('debian version unstable alkdjfad',
r'^No package.*\(unstable\)')
self.assertRegexp('version gaim', r'Total matches:.*gaim.*\(stable\)')
self.assertError('version unstable')
self.assertRegexp('debian version gaim',
r'Total matches:.*gaim.*\(stable\)')
self.assertError('debian version unstable')
def testDebfile(self):
if not self.fileDownloaded: