@@ -36,13 +36,12 @@ def test_get_accessible_filepath_ids(self):
3636 # shared has access to all study files and analysis files
3737
3838 obs = get_accessible_filepath_ids (User ('shared@foo.bar' ))
39- self .assertEqual (obs , set ([1 , 2 , 5 , 6 , 7 , 11 , 12 , 13 , 14 , 15 , 16 , 17 ,
40- 18 , 19 , 20 ]))
39+ self .assertEqual (obs , {1 , 2 , 3 , 4 , 5 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 })
4140
4241 # Now shared should not have access to the study files
4342 self ._unshare_studies ()
4443 obs = get_accessible_filepath_ids (User ('shared@foo.bar' ))
45- self .assertEqual (obs , set ([ 12 , 13 , 14 , 15 ]) )
44+ self .assertEqual (obs , { 10 , 11 , 12 , 13 } )
4645
4746 # Now shared should not have access to any files
4847 self ._unshare_analyses ()
@@ -52,10 +51,10 @@ def test_get_accessible_filepath_ids(self):
5251 # Now shared has access to public study files
5352 self ._set_processed_data_public ()
5453 obs = get_accessible_filepath_ids (User ('shared@foo.bar' ))
55- self .assertEqual (obs , set ([ 1 , 2 , 5 , 6 , 7 , 11 , 16 , 19 , 20 ]) )
54+ self .assertEqual (obs , { 1 , 2 , 3 , 4 , 5 , 9 , 14 , 15 , 16 } )
5655
5756 # Test that it doesn't break: if the SampleTemplate hasn't been added
58- exp = set ([ 1 , 2 , 5 , 6 , 7 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 ])
57+ exp = { 1 , 2 , 3 , 4 , 5 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 }
5958 obs = get_accessible_filepath_ids (User ('test@foo.bar' ))
6059 self .assertEqual (obs , exp )
6160
0 commit comments