From f92b0e28898eb15729b6af0db6754a74d7bd2f4e Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 24 Feb 2021 13:30:13 +0100 Subject: [PATCH] lusers: Assert GlobalInvisible and GlobalVisible are lower or equal to the total --- irctest/server_tests/test_lusers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/irctest/server_tests/test_lusers.py b/irctest/server_tests/test_lusers.py index 9c5c792..8da0b23 100644 --- a/irctest/server_tests/test_lusers.py +++ b/irctest/server_tests/test_lusers.py @@ -42,6 +42,8 @@ class LusersTestCase(cases.BaseServerTestCase): self.assertGreaterEqual(lusers.GlobalInvisible, 0) self.assertGreaterEqual(lusers.GlobalVisible, 0) + self.assertLessEqual(lusers.GlobalInvisible, total) + self.assertLessEqual(lusers.GlobalVisible, total) self.assertEqual(lusers.GlobalInvisible + lusers.GlobalVisible, total) self.assertEqual(lusers.LocalTotal, total)