def METHOD_NAME(self):
    f, outer, inner = self.make_frames()
    outer_locals = outer.f_locals
    self.assertIsInstance(outer_locals.pop('inner'), types.FunctionType)
    self.assertEqual(outer_locals, {'x': 5, 'y': 6})
    inner_locals = inner.f_locals
    self.assertEqual(inner_locals, {'x': 5, 'z': 7})