parameters: (other_base_class)
return_statement: return metaclass(
        'CoopParameterizedTestCase',
        (other_base_class, ParameterizedTestCase), {})
docstring: Returns a new base class with a cooperative metaclass base.
  
    This enables the ParameterizedTestCase to be used in combination
    with other base classes that have custom metaclasses, such as
    mox.MoxTestBase.
  
    Only works with metaclasses that do not override type.__new__.
  
    Example:
  
      import google3
      import mox
  
      from google3.testing.pybase import parameterized
  
      class ExampleTest(parameterized.CoopParameterizedTestCase(mox.MoxTestBase)):
        ...
  
    Args:
      other_base_class: (class) A test case base class.
  
    Returns:
      A new class object.
docstring_summary: Returns a new base class with a cooperative metaclass base.
docstring_tokens: Returns a new base class with a cooperative metaclass base .
function: def CoopParameterizedTestCase(other_base_class):
    """Returns a new base class with a cooperative metaclass base.
  
    This enables the ParameterizedTestCase to be used in combination
    with other base classes that have custom metaclasses, such as
    mox.MoxTestBase.
  
    Only works with metaclasses that do not override type.__new__.
  
    Example:
  
      import google3
      import mox
  
      from google3.testing.pybase import parameterized
  
      class ExampleTest(parameterized.CoopParameterizedTestCase(mox.MoxTestBase)):
        ...
  
    Args:
      other_base_class: (class) A test case base class.
  
    Returns:
      A new class object.
    """
    metaclass = type(
        'CoopMetaclass',
        (other_base_class.__metaclass__,
         TestGeneratorMetaclass), {})
    return metaclass(
        'CoopParameterizedTestCase',
        (other_base_class, ParameterizedTestCase), {})
function_tokens: def CoopParameterizedTestCase ( other_base_class ) : metaclass = type ( 'CoopMetaclass' , ( other_base_class . __metaclass__ , TestGeneratorMetaclass ) , { } ) return metaclass ( 'CoopParameterizedTestCase' , ( other_base_class , ParameterizedTestCase ) , { } )