

def test_bad_methods(self):
    f = cst.flavorManager
    self.assertRaises(BadMethodFault, f.create, None)
    self.assertRaises(BadMethodFault, f.remove, None)
    self.assertRaises(BadMethodFault, f.update, None)
    self.assertRaises(BadMethodFault, f.refresh, None)
    self.assertRaises(BadMethodFault, f.wait, None)
    self.assertRaises(BadMethodFault, f.waitT, None, None)
    self.assertRaises(BadMethodFault, f.notify, None, None)
    self.assertRaises(BadMethodFault, f.stopNotify, None, None)

dataset/ETHPy150Open rackerlabs/python-cloudservers/com/rackspace/cloud/servers/api/client/tests/test_flavormanager.py TestFlavorManager.test_bad_methods/original