예제 #1
0
 def diff(self, r, f):
     h2o.verboseprint("checking r and f:", r, f)
     for (r_chunk,
          f_chunk) in itertools.izip(r.iter_content(1024),
                                     h2o.iter_chunked_file(f, 1024)):
         # print "\nr_chunk:", r_chunk,
         # print "\nf_chunk:", f_chunk
         self.assertEqual(r_chunk, f_chunk)
예제 #2
0
 def diff(self, r, f):
     for (r_chunk,
          f_chunk) in itertools.izip(r.iter_content(1024),
                                     h2o.iter_chunked_file(f, 1024)):
         self.assertEqual(r_chunk, f_chunk)
예제 #3
0
파일: test_putfile.py 프로젝트: askinss/h2o
 def diff(self,r, f):
     for (r_chunk,f_chunk) in itertools.izip(r.iter_content(1024), h2o.iter_chunked_file(f, 1024)):
         self.assertEqual(r_chunk,f_chunk)
예제 #4
0
 def diff(self,r, f):
     h2o.verboseprint("checking r and f:", r, f)
     for (r_chunk,f_chunk) in itertools.izip(r.iter_content(1024), h2o.iter_chunked_file(f, 1024)):
         # print "\nr_chunk:", r_chunk, 
         # print "\nf_chunk:", f_chunk
         self.assertEqual(r_chunk,f_chunk)