I would rather the header and body to be explicit if you do not mind - adding none here does not help as you will be passing empty strings anyway which evaluate to False in a test ..