Lines Matching refs:manager
55 class manager: class
58 lambda *a,**k: manager())
80 manager = server_job.warning_manager()
81 self.assertEqual(manager.is_valid(10, "MSGTYPE"), True)
85 manager = server_job.warning_manager()
86 manager.enable_warnings("MSGTYPE", lambda: 10)
87 self.assertEqual(manager.is_valid(20, "MSGTYPE"), True)
91 manager = server_job.warning_manager()
92 manager.disable_warnings("MSGTYPE", lambda: 10)
93 self.assertEqual(manager.is_valid(5, "MSGTYPE"), True)
94 self.assertEqual(manager.is_valid(15, "MSGTYPE"), False)
98 manager = server_job.warning_manager()
99 manager.disable_warnings("MSGTYPE", lambda: 10)
100 manager.enable_warnings("MSGTYPE", lambda: 20)
101 self.assertEqual(manager.is_valid(15, "MSGTYPE"), False)
102 self.assertEqual(manager.is_valid(25, "MSGTYPE"), True)
106 manager = server_job.warning_manager()
107 self.assertEqual(manager.is_valid(15, "MSGTYPE"), True)
108 manager.disable_warnings("MSGTYPE", lambda: 10)
109 self.assertEqual(manager.is_valid(15, "MSGTYPE"), False)
113 manager = server_job.warning_manager()
114 manager.disable_warnings("MSGTYPE", lambda: 10)
115 manager.disable_warnings("MSGTYPE", lambda: 20)
116 manager.enable_warnings("MSGTYPE", lambda: 30)
117 self.assertEqual(manager.is_valid(15, "MSGTYPE"), False)
118 self.assertEqual(manager.is_valid(25, "MSGTYPE"), False)
119 self.assertEqual(manager.is_valid(35, "MSGTYPE"), True)
123 manager = server_job.warning_manager()
124 manager.disable_warnings("MSGTYPE1", lambda: 10)
125 manager.disable_warnings("MSGTYPE2", lambda: 20)
126 manager.enable_warnings("MSGTYPE2", lambda: 30)
127 self.assertEqual(manager.is_valid(15, "MSGTYPE1"), False)
128 self.assertEqual(manager.is_valid(15, "MSGTYPE2"), True)
129 self.assertEqual(manager.is_valid(25, "MSGTYPE1"), False)
130 self.assertEqual(manager.is_valid(25, "MSGTYPE2"), False)
131 self.assertEqual(manager.is_valid(35, "MSGTYPE1"), False)
132 self.assertEqual(manager.is_valid(35, "MSGTYPE2"), True)