Pause a running result.

        :param id: Result ID as an int.
        :param when: Must be string `end-of-test` or `end-of-loop`.

def pause(self, id, when=None): # pylint: disable=invalid-name,redefined-builtin
        """Pause a running result.

        :param id: Result ID as an int.
        :param when: Must be string `end-of-test` or `end-of-loop`.
        """
        return self.service.post(self.base+str(id)+'/pause/', params={'when': when})