Lines Matching refs:format
41 def __init__(self, magic=MAGIC, format='<'): argument
42 self.format = format
44 version = struct.unpack(format + 'I', '*802')[0]
45 self.content = struct.pack(format + 'III', magic, version, 0)
60 new_content = stream.content + struct.pack(stream.format + 'I',
62 s = MockStream(stream.magic, stream.format)
81 new_content = stream.content + struct.pack(stream.format + 'II', lo,
83 s = MockStream(stream.magic, stream.format)
109 stream.format + 'I', word_count) + bytes(string + padding)
110 s = MockStream(stream.magic, stream.format)
148 self.assertEqual(p.format, '<')
155 self.stream = MockStream(format='>')
157 self.assertEqual(p.format, '>')
183 self.stream = MockStream(format='>')