pook/mock.py
def file(self, path):
        """
        Reads the body to match from a disk file.

        Arguments:
            path (str): relative or absolute path to file to read from.

        Returns:
            self: current Mock instance.
        """
        with open(path, 'r') as f:
            self.body(str(f.read()))
def file(self, path):
        with open(path, 'r') as f:
            self.body(str(f.read()))
def file ( self , path ) : with open ( path , 'r' ) as f : self . body ( str ( f . read ( ) ) )
Reads the body to match from a disk file.

        Arguments:
            path (str): relative or absolute path to file to read from.

        Returns:
            self: current Mock instance.
Reads the body to match from a disk file .