mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Misc includes a version command and is now loaded by default, so I had to disambiguate the version test.
This commit is contained in:
parent
aab9d8a3a0
commit
c150567565
@ -48,8 +48,8 @@ class DebianTestCase(PluginTestCase, PluginDocumentation):
|
|||||||
else:
|
else:
|
||||||
print
|
print
|
||||||
print "Dowloading files, this may take awhile"
|
print "Dowloading files, this may take awhile"
|
||||||
while not os.path.exists(os.path.join(conf.dataDir,
|
filename = os.path.join(conf.dataDir, 'Contents-i386.gz')
|
||||||
'Contents-i386.gz')):
|
while not os.path.exists(filename):
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
print "Download complete"
|
print "Download complete"
|
||||||
print "Starting test ..."
|
print "Starting test ..."
|
||||||
@ -58,11 +58,12 @@ class DebianTestCase(PluginTestCase, PluginDocumentation):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def testDebversion(self):
|
def testDebversion(self):
|
||||||
self.assertRegexp('version lakjdfad', r'^No package.*\(all\)')
|
self.assertRegexp('debian version lakjdfad', r'^No package.*\(all\)')
|
||||||
self.assertRegexp('version unstable alkdjfad',
|
self.assertRegexp('debian version unstable alkdjfad',
|
||||||
r'^No package.*\(unstable\)')
|
r'^No package.*\(unstable\)')
|
||||||
self.assertRegexp('version gaim', r'Total matches:.*gaim.*\(stable\)')
|
self.assertRegexp('debian version gaim',
|
||||||
self.assertError('version unstable')
|
r'Total matches:.*gaim.*\(stable\)')
|
||||||
|
self.assertError('debian version unstable')
|
||||||
|
|
||||||
def testDebfile(self):
|
def testDebfile(self):
|
||||||
if not self.fileDownloaded:
|
if not self.fileDownloaded:
|
||||||
|
Loading…
Reference in New Issue
Block a user