mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fixed the tests to match the change in Debian command names
This commit is contained in:
parent
617b4928ef
commit
d2b993d2ec
@ -58,22 +58,21 @@ class DebianTestCase(PluginTestCase, PluginDocumentation):
|
||||
pass
|
||||
|
||||
def testDebversion(self):
|
||||
self.assertNotError('debversion')
|
||||
self.assertRegexp('debversion lakjdfad', r'^No package.*\(all\)')
|
||||
self.assertRegexp('debversion unstable alkdjfad',
|
||||
self.assertNotError('version')
|
||||
self.assertRegexp('version lakjdfad', r'^No package.*\(all\)')
|
||||
self.assertRegexp('version unstable alkdjfad',
|
||||
r'^No package.*\(unstable\)')
|
||||
self.assertRegexp('debversion gaim',
|
||||
r'Total matches:.*gaim.*\(stable\)')
|
||||
self.assertError('debversion unstable')
|
||||
self.assertRegexp('version gaim', r'Total matches:.*gaim.*\(stable\)')
|
||||
self.assertError('version unstable')
|
||||
|
||||
def testDebfile(self):
|
||||
if not self.fileDownloaded:
|
||||
pass
|
||||
self.assertNotError('debfile')
|
||||
self.assertRegexp('debfile --exact bin/gaim', r'net/gaim')
|
||||
self.assertNotError('file')
|
||||
self.assertRegexp('file --exact bin/gaim', r'net/gaim')
|
||||
|
||||
def testDebincoming(self):
|
||||
self.assertNotError('debincoming')
|
||||
self.assertNotError('incoming')
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user