Fixed tests
This commit is contained in:
5
tests.py
5
tests.py
@@ -127,10 +127,11 @@ class ConfigFileTestCase(unittest.TestCase):
|
|||||||
self.assertTrue(os.path.exists(self.cfgfile))
|
self.assertTrue(os.path.exists(self.cfgfile))
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
"fail2ban modoboa automx rspamd clamav dovecot nginx razor "
|
"fail2ban modoboa automx rspamd clamav dovecot nginx razor "
|
||||||
"postfix postwhite uwsgi radicale",
|
"postfix uwsgi radicale",
|
||||||
out.getvalue()
|
out.getvalue()
|
||||||
)
|
)
|
||||||
self.assertNotIn("It seems that your config file is outdated.",
|
self.assertNotIn(
|
||||||
|
"It seems that your config file is outdated.",
|
||||||
out.getvalue()
|
out.getvalue()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user