Revision 5224c9bf test/py/ganeti.rapi.rlib2_unittest.py

b/test/py/ganeti.rapi.rlib2_unittest.py
1 1
#!/usr/bin/python
2 2
#
3 3

  
4
# Copyright (C) 2010, 2012 Google Inc.
4
# Copyright (C) 2010, 2012, 2013 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
......
1770 1770
  def testMethodAccess(self):
1771 1771
    for handler in connector.CONNECTOR.values():
1772 1772
      for method in baserlib._SUPPORTED_METHODS:
1773
        access = getattr(handler, "%s_ACCESS" % method)
1773
        access = baserlib.GetHandlerAccess(handler, method)
1774
        self.assertFalse(access is None)
1774 1775
        self.assertFalse(set(access) - rapi.RAPI_ACCESS_ALL,
1775 1776
                         msg=("Handler '%s' uses unknown access options for"
1776 1777
                              " method %s" % (handler, method)))

Also available in: Unified diff