def __init__(self, parent, sdkobject, helper):
        """ Initializes a test case for updating objects
        """
        super(UpdateTestMaker, self).__init__(helper=helper)
        self.parent = parent
        self.sdkobject = sdkobject

        # Object tests
        # self.register_test("_test_update_object_with_same_attributes_should_fail") # this feature is completely stupid anyway
        self.register_test("_test_update_object_without_authentication_should_fail")

        # Attribute tests
        self.register_test_for_attribute("_test_update_object_with_attribute_not_in_allowed_choices_list_should_fail", has_choices=True)
        self.register_test_for_attribute("_test_update_object_with_required_attribute_as_none_should_fail", is_required=True)
        self.register_test_for_attribute("_test_update_object_with_attribute_as_none_should_succeed", is_required=False)
def __init__ ( self , parent , sdkobject , helper ) : super ( UpdateTestMaker , self ) . __init__ ( helper = helper ) self . parent = parent self . sdkobject = sdkobject self . register_test ( "_test_update_object_without_authentication_should_fail" ) self . register_test_for_attribute ( "_test_update_object_with_attribute_not_in_allowed_choices_list_should_fail" , has_choices = True ) self . register_test_for_attribute ( "_test_update_object_with_required_attribute_as_none_should_fail" , is_required = True ) self . register_test_for_attribute ( "_test_update_object_with_attribute_as_none_should_succeed" , is_required = False )
Initializes a test case for updating objects