def mock_ec2_deprecated(self):
    '\n        if the mock_ec2_deprecated function is not available due to import failure\n        this replaces the decorated function with stub_function.\n        Allows boto_elb unit tests to use the @mock_ec2_deprecated decorator\n        without a "NameError: name \'mock_ec2_deprecated\' is not defined" error.\n        '

    def stub_function(self):
        pass
    return stub_function
if the mock_ec2_deprecated function is not available due to import failure
this replaces the decorated function with stub_function.
Allows boto_elb unit tests to use the @mock_ec2_deprecated decorator
without a "NameError: name 'mock_ec2_deprecated' is not defined" error.
def mock_ec2_deprecated(self):
    '\n        if the mock_ec2_deprecated function is not available due to import failure\n        this replaces the decorated function with stub_function.\n        Allows boto_elb unit tests to use the @mock_ec2_deprecated decorator\n        without a "NameError: name \'mock_ec2_deprecated\' is not defined" error.\n        '

    def stub_function(self):
        pass
    return stub_function