(self, tok, args, tips)
| 195 | self.fail("Found: %s. Expected: %s" % (t[2], expected)) |
| 196 | |
| 197 | def assert_args(self, tok, args, tips): |
| 198 | if not isinstance(args, (list, tuple)): |
| 199 | args = (args,) |
| 200 | |
| 201 | for a in tips[1]: |
| 202 | if tok == a[0]: |
| 203 | for arg in args: |
| 204 | if arg == a[2]: |
| 205 | return |
| 206 | raise AssertionError("%s not in %s", a[2], args) |
| 207 | |
| 208 | raise AssertionError("%s not in %s", tok, tips) |
| 209 | |
| 210 | def assert_in(self, tok, tips): |
| 211 | for a in tips[1]: |