Revision 687c10d9 test/ganeti.mcpu_unittest.py
b/test/ganeti.mcpu_unittest.py | ||
---|---|---|
1 | 1 |
#!/usr/bin/python |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2009 Google Inc. |
|
4 |
# Copyright (C) 2009, 2011 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
58 | 58 |
class TestDispatchTable(unittest.TestCase): |
59 | 59 |
def test(self): |
60 | 60 |
for opcls in opcodes.OP_MAPPING.values(): |
61 |
if opcls is opcodes.OpCode or opcls is opcodes.OpTestDummy:
|
|
61 |
if not opcls.WITH_LU:
|
|
62 | 62 |
continue |
63 |
self.assert_(opcls in mcpu.Processor.DISPATCH_TABLE,
|
|
64 |
msg="%s missing handler class" % opcls) |
|
63 |
self.assertTrue(opcls in mcpu.Processor.DISPATCH_TABLE,
|
|
64 |
msg="%s missing handler class" % opcls)
|
|
65 | 65 |
|
66 | 66 |
|
67 | 67 |
if __name__ == "__main__": |
Also available in: Unified diff