def make_minimal_cs_comment(overrides=None):
 ret = {'type': 'comment', 'id': 'dummy', 'commentable_id': 'dummy', 'thread_id': 'dummy', 'parent_id': None, 'user_id': '0', 'username': 'dummy', 'anonymous': False, 'anonymous_to_peers': False, 'created_at': '1970-01-01T00:00:00Z', 'updated_at': '1970-01-01T00:00:00Z', 'body': 'dummy', 'abuse_flaggers': [], 'votes': {'up_count': 0}, 'endorsed': False, 'child_count': 0, 'children': []}
 ret.update((overrides or {}))
 return ret

def make_minimal_cs_comment ( overrides = None ) : ret = { 'type' : 'comment' , 'id' : 'dummy' , 'commentable_id' : 'dummy' , 'thread_id' : 'dummy' , 'parent_id' : None , 'user_id' : '0' , 'username' : 'dummy' , 'anonymous' : False , 'anonymous_to_peers' : False , 'created_at' : '1970-01-01T00:00:00Z' , 'updated_at' : '1970-01-01T00:00:00Z' , 'body' : 'dummy' , 'abuse_flaggers' : [ ] , 'votes' : { 'up_count' : 0 } , 'endorsed' : False , 'child_count' : 0 , 'children' : [ ] } ret . update ( ( overrides or { } ) ) return ret
create a dictionary containing all needed comment fields as returned by the comments service with dummy data and optional overrides .