Example #1
0
 def test_copy_unparsed(self):
     for spid in GOOD:
         # create invalid, unparsed pid
         pid = Pid('_' + spid, parse=False)
         # copy it
         copy = pid.copy()
         # now parse it, expecting ValueError
         with self.assertRaises(ValueError):
             copy.parsed
Example #2
0
 def test_copy(self):
     for spid in GOOD:
         pid = Pid(spid)
         copy = pid.copy()
         assert pid == copy