示例#1
0
 def test_max_bytes(self):
     segments = utils.segment_requests(self.requests, max_bytes=0)
     assert_equal(len(segments), len(self.requests))
     for segment in segments:
         assert_equal(len(segment), 1)
示例#2
0
 def test_single(self):
     segments = utils.segment_requests(self.requests)
     assert_equal(len(segments), 1)
     assert_equal(len(segments[0]), 3)