Skip to content

Commit

Permalink
Add ddep flag test to Rucio_t.testGetReplicaInfoForBlocks()
Browse files Browse the repository at this point in the history
  • Loading branch information
germanfgv committed Dec 2, 2021
1 parent 8253fe3 commit 7ec92e0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/python/WMCore_t/Services_t/Rucio_t/Rucio_t.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,15 @@ def testGetReplicaInfoForBlocks(self):
for item in res:
self.assertTrue(len(item['replica']) > 0)

#Setting deep=True should yield the same results
res = self.myRucio.getReplicaInfoForBlocks(dataset=DSET, deep=True)
self.assertTrue(isinstance(res, list))
self.assertTrue(len(res) >= 1) # Again, there are 11 replicas
blocks = [item['name'] for item in res]
self.assertTrue(BLOCK in blocks)
for item in res:
self.assertTrue(len(item['replica']) > 0)

def testGetPFN(self):
"""
Test `getPFN` method
Expand Down

0 comments on commit 7ec92e0

Please sign in to comment.