]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
exercise all branches of new helper "get_filenode_metadata"
authorzancas <zancas@leastauthority.com>
Tue, 7 Oct 2014 23:36:03 +0000 (17:36 -0600)
committerzancas <zancas@leastauthority.com>
Fri, 10 Oct 2014 17:27:27 +0000 (11:27 -0600)
commit1545e14076137e44b2b14b44d90f83a8a24d3750
tree526401bde152fd745fc45e2f361444e4e8f83c87
parent0baa7444112ead61a468c0eac0affda0d937c5da
exercise all branches of new helper "get_filenode_metadata"

Note fix following issues from origial commit:

refactor unittests, fix style, add test

(0) use CommonFixture as mixin to increase DRYness
(1) self.failUnlessIn('size', metadata.keys()) --> self.failUnlessIn('size', metdata)
(2) test_size_is_not_None --> test_size_is_0 AND test_size_is_1000
src/allmydata/test/test_json_metadata.py [new file with mode: 0644]