client.protocols.file_contents.protocol

Here are the examples of the python api client.protocols.file_contents.protocol taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: ok-client Source File: file_contents_test.py
Function: set_up
    def setUp(self):
        self.cmd_args = mock.Mock()
        self.cmd_args.submit = True
        self.cmd_args.restore = False
        self.assignment = mock.MagicMock()
        self.files = {}

        self.proto = file_contents.protocol(self.cmd_args, self.assignment)
        self.proto.is_file = self.mockIsFile
        self.proto.read_file = self.mockReadFile