code: def pause(self, id, when=None): # pylint: disable=invalid-name,redefined-builtin
          
          return self.service.post(self.base+str(id)+'/pause/', params={'when': when})
docs: Pause a running result.
  
          :param id: Result ID as an int.
          :param when: Must be string `end-of-test` or `end-of-loop`.