Skip to content

Commit

Permalink
Adjust unit test to test wrap of number 9 in customDID
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Mar 26, 2024
1 parent 92d7c6e commit 6c8e7fb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/python/WMCore_t/MicroService_t/MSPileup_t/MSPileupData_t.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ def testCustomDID(self):
expect = "/abc/xyz/MINIAOD-V124"
self.assertTrue(did == expect)

# test last digit wrap
pname = "/abc/xyz/MINIAOD-V19"
did = customDID(pname)
expect = "/abc/xyz/MINIAOD-V20"
self.assertTrue(did == expect)

# test last digit wrap
pname = "/abc/xyz/MINIAOD-V99"
did = customDID(pname)
expect = "/abc/xyz/MINIAOD-V100"
self.assertTrue(did == expect)

def testUpdateTransitionRecord(self):
"""Test the addTransitionRecord function"""
self.logger.info("test addTransitionRecord function")
Expand Down

0 comments on commit 6c8e7fb

Please sign in to comment.