def METHOD_NAME(self):
    class TestClassA:
        def __init__(self):
            self.var_dict = {'a': 1, 'b': 2}
    class TestClassB:
        def __init__(self, other_obj):
            self.obj_with_inner_obj = other_obj
    json_obj = todict(TestClassB(other_obj=TestClassA()), convert_private=True, include_none_fields=True)
    self.assertEqual(json_obj, {'obj_with_inner_obj': {'var_dict': {'a': 1, 'b': 2}}})