def _request ( self , data ) : return requests . post ( self . endpoint , data = data . encode ( "ascii" ) ) . content
post method, what data is encoded in the request python
Moved out to make testing easier .
def _request(self, data):
        """Moved out to make testing easier."""
        return requests.post(self.endpoint, data=data.encode("ascii")).content