def valid_content_type(self, content_type, accept):
accept_tokens = accept.replace('<STR_LIT:U+0020>', '<STR_LIT>').split('<STR_LIT:;>')<EOL>content_type_tokens = content_type.replace('<STR_LIT:U+0020>', '<STR_LIT>').split('<STR_LIT:;>')<EOL>return (<EOL>all(elem in content_type_tokens for elem in accept_tokens) and<EOL>(content_type_tokens[<NUM_LIT:0>] == '<STR_LIT>' or<EOL>content_type_tokens[<NUM_LIT:0>] == '<STR_LIT>')<EOL>)<EOL>
Check that the server is returning a valid Content-Type

        Args:
            content_type (str): ``Content-Type:`` header value
            accept (str): media type to include in the ``Accept:`` header.