class_docstr: Parameterize a test case::
  
  class TestInt(object):
      @parameterized([
          ("A", 10),
          ("F", 15),
          param("10", 42, base=42)
      ])
      def test_int(self, input, expected, base=16):
          actual = int(input, base=base)
          assert_equal(actual, expected)
  
  @parameterized([
      (2, 3, 5)
      (3, 5, 8),
  ])
  def test_add(a, b, expected):
      assert_equal(a + b, expected)
class_docstr_tok: ["Parameterize","a","test","case",":",":","class","TestInt","(","object",")",":","@","parameterized","(","[","(","``","A","''",",","10",")",",","(","``","F","''",",","15",")",",","param","(","``","10","''",",","42",",","base=42",")","]",")","def","test_int","(","self",",","input",",","expected",",","base=16",")",":","actual","=","int","(","input",",","base=base",")","assert_equal","(","actual",",","expected",")","@","parameterized","(","[","(","2",",","3",",","5",")","(","3",",","5",",","8",")",",","]",")","def","test_add","(","a",",","b",",","expected",")",":","assert_equal","(","a","+","b",",","expected",")"]
docstr: Returns the set of parent classes of the class currently being defined.
  Will likely only work if called from the ``parameterized`` decorator.
  This function is entirely @brandon_rhodes's fault, as he suggested
  the implementation: http://stackoverflow.com/a/8793684/71522
docstr_tok: ["Returns","the","set","of","parent","classes","of","the","class","currently","being","defined",".","Will","likely","only","work","if","called","from","the","``","parameterized","``","decorator",".","This","function","is","entirely","@","brandon_rhodes","'s","fault",",","as","he","suggested","the","implementation",":","http",":","\/\/stackoverflow.com\/a\/8793684\/71522"]
code: def _terrible_magic_get_defining_classes(self):
      """Returns the set of parent classes of the class currently being defined.
      Will likely only work if called from the ``parameterized`` decorator.
      This function is entirely @brandon_rhodes's fault, as he suggested
      the implementation: http://stackoverflow.com/a/8793684/71522
      """
      stack = inspect.stack()
      if len(stack) <= 4:
          return []
      frame = stack[4]
      code_context = frame[4] and frame[4][0].strip()
      if not (code_context and code_context.startswith("class ")):
          return []
      _, _, parents = code_context.partition("(")
      parents, _, _ = parents.partition(")")
      return eval(
          "[" + parents + "]", frame[0].f_globals, frame[0].f_locals
      )
  
imports: import re
  import sys
  import inspect
  import warnings
  from functools import wraps
  from types import MethodType
  from collections import namedtuple
  from unittest import TestCase
label_desc: Use image node_id 5 for calling the parameterized obj's underlying member method code with example usage: obj._terrible_magic_get_defining_classes() and returns: eval, list, list