def validate(ark): return arkpy.validate(ark)
def test_validate_bare_and_nonbare(self): ark = arkpy.mint(authority='66666', template='ddeeddeek', bare=False) ark2 = arkpy.mint(authority='66666', template='ddeeddeek', bare=True) self.assertTrue(arkpy.validate(ark)) self.assertTrue(arkpy.validate(ark2))
def validate(ark): is_valid = arkpy.validate(ark) return is_valid
def test_validate_known_valid_with_scheme(self): ark = 'ark:/13030/f54x54g11' self.assertTrue(arkpy.validate(ark))
def test_validate_known_invalid_with_scheme(self): ark = 'ark:/13030/f54x54g10' self.assertFalse(arkpy.validate(ark))
def test_validate_known_valid(self): ark = '13030/f54x54g11' self.assertTrue(arkpy.validate(ark))
def test_validate_known_invalid(self): ark = '13030/f54x54g10' self.assertFalse(arkpy.validate(ark))