Lines Matching full:stack
107 stack = status_lib.status_stack()
108 self.assertEquals(stack.current_status(), "NOSTATUS")
112 stack = status_lib.status_stack()
113 stack.update("FAIL")
114 stack.start()
115 self.assertEquals(stack.current_status(), "NOSTATUS")
119 stack = status_lib.status_stack()
120 self.assertEquals(stack.size(), 0)
121 stack.start()
122 stack.end()
123 self.assertEquals(stack.size(), 0)
124 stack.end()
125 self.assertEquals(stack.size(), 0)
130 stack = status_lib.status_stack()
131 stack.update(status)
132 self.assertEquals(stack.current_status(), status)
139 stack = status_lib.status_stack()
141 stack.update(better_status)
142 stack.update(worse_status)
143 self.assertEquals(stack.current_status(),
151 stack = status_lib.status_stack()
153 stack.update(worse_status)
154 stack.update(better_status)
155 self.assertEquals(stack.current_status(),
160 stack = status_lib.status_stack()
161 stack.update("GOOD")
162 stack.start()
163 stack.update("FAIL")
164 stack.start()
165 stack.update("WARN")
166 self.assertEquals(stack.end(), "WARN")
167 self.assertEquals(stack.end(), "FAIL")
168 self.assertEquals(stack.end(), "GOOD")
169 self.assertEquals(stack.end(), "NOSTATUS")