コード例 #1
0
 def test_length_is_correct(self):
     encoded = filepost.encode_multipart_formdata(self.parts,
                                                  self.boundary)[0]
     assert len(encoded) == self.instance.len
コード例 #2
0
 def test_length_is_correct(self):
     encoded = filepost.encode_multipart_formdata(self.parts,
                                                  self.boundary)[0]
     assert len(encoded) == self.instance.len
コード例 #3
0
 def test_encodes_data_the_same(self):
     encoded = filepost.encode_multipart_formdata(self.parts,
                                                  self.boundary)[0]
     assert encoded == self.instance.read()
コード例 #4
0
 def test_encodes_data_the_same(self):
     encoded = filepost.encode_multipart_formdata(self.parts,
                                                  self.boundary)[0]
     assert encoded == self.instance.read()