def METHOD_NAME(self):
    class TestClass:
        def __init__(self):
            self.public_variable = 1
            self._private_variable = 2
    # convert_private=True
    json_obj = todict(TestClass(), convert_private=True, include_none_fields=True)
    self.assertEqual(json_obj, {'_private_variable': 2, 'public_variable': 1})
    # convert_private=False
    json_obj = todict(TestClass(), convert_private=False, include_none_fields=True)
    self.assertEqual(json_obj, {'public_variable': 1})
    self.assertNotIn("method_a", json_obj)