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
3
Example 1
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