X-Git-Url: https://git.rkrishnan.org/?a=blobdiff_plain;f=src%2Fallmydata%2Ftest%2Ftest_mutable.py;h=c9711c6dc3ac5287a6406f746667ce0d5cc18bc5;hb=27ea6e1a3c6814f2a7fa84358095e344e31d3385;hp=cda033f743604b827250bb4e8bfd1c725277683b;hpb=89e9076c41420a4145ae9a1db236dc2a1eb41259;p=tahoe-lafs%2Ftahoe-lafs.git diff --git a/src/allmydata/test/test_mutable.py b/src/allmydata/test/test_mutable.py index cda033f7..c9711c6d 100644 --- a/src/allmydata/test/test_mutable.py +++ b/src/allmydata/test/test_mutable.py @@ -3438,7 +3438,9 @@ class Version(GridTestMixin, unittest.TestCase, testutil.ShouldFailMixin, \ data = "hi" modes = [("one_byte", 0, 1), ("last_byte", 1, 1), + ("last_byte2", 1, None), ("complete_file", 0, 2), + ("complete_file2", 0, None), ] d = self.do_upload_sdmf(data=data) d.addCallback(self._test_partial_read, data, modes, 1) @@ -3446,6 +3448,7 @@ class Version(GridTestMixin, unittest.TestCase, testutil.ShouldFailMixin, \ def test_partial_read_sdmf_90(self): modes = [("start_at_middle", 50, 40), + ("start_at_middle2", 50, None), ("zero_length_at_start", 0, 0), ("zero_length_in_middle", 50, 0), ("zero_length_at_end", 90, 0), @@ -3459,9 +3462,11 @@ class Version(GridTestMixin, unittest.TestCase, testutil.ShouldFailMixin, \ def test_partial_read_sdmf_100(self): data = "test data "*10 modes = [("start_at_middle", 50, 50), + ("start_at_middle2", 50, None), ("zero_length_at_start", 0, 0), ("zero_length_in_middle", 50, 0), - ("complete_file", 0, 100), + ("complete_file1", 0, 100), + ("complete_file2", 0, None), ] d = self.do_upload_sdmf(data=data) d.addCallback(self._test_partial_read, data, modes, 10)