def test_get_action_class_bases_returns_SSHKeysImportAction(self): # Test uses SSHKeysImportAction as its know to exist. handler = {"name": "SSHKeysHandler"} action = {"name": "import"} self.assertEqual( (SSHKeysImportAction,), api.get_action_class_bases(handler, action) )
def test_get_action_class_bases_returns_BootResourcesCreateAction(self): # Test uses BootResourcesCreateAction as its know to exist. handler = {'name': 'BootResourcesHandler'} action = {'name': 'create'} self.assertEqual( (BootResourcesCreateAction,), api.get_action_class_bases(handler, action))
def test_get_action_class_bases_returns_Action(self): handler = {"name": factory.make_name("handler")} action = {"name": "create"} self.assertEqual( (api.Action,), api.get_action_class_bases(handler, action) )
def test_get_action_class_bases_returns_Action(self): handler = {'name': factory.make_name('handler')} action = {'name': 'create'} self.assertEqual( (api.Action,), api.get_action_class_bases(handler, action))