Exemple #1
0
def validate(ark):
    return arkpy.validate(ark)
Exemple #2
0
 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))
Exemple #3
0
def validate(ark):
    is_valid = arkpy.validate(ark)
    return is_valid
Exemple #4
0
 def test_validate_known_valid_with_scheme(self):
     ark = 'ark:/13030/f54x54g11'
     self.assertTrue(arkpy.validate(ark))
Exemple #5
0
 def test_validate_known_invalid_with_scheme(self):
     ark = 'ark:/13030/f54x54g10'
     self.assertFalse(arkpy.validate(ark))
Exemple #6
0
 def test_validate_known_valid(self):
     ark = '13030/f54x54g11'
     self.assertTrue(arkpy.validate(ark))
Exemple #7
0
 def test_validate_known_invalid(self):
     ark = '13030/f54x54g10'
     self.assertFalse(arkpy.validate(ark))
Exemple #8
0
 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))
Exemple #9
0
 def test_validate_known_invalid_with_scheme(self):
     ark = 'ark:/13030/f54x54g10'
     self.assertFalse(arkpy.validate(ark))
Exemple #10
0
 def test_validate_known_valid_with_scheme(self):
     ark = 'ark:/13030/f54x54g11'
     self.assertTrue(arkpy.validate(ark))
Exemple #11
0
 def test_validate_known_invalid(self):
     ark = '13030/f54x54g10'
     self.assertFalse(arkpy.validate(ark))
Exemple #12
0
 def test_validate_known_valid(self):
     ark = '13030/f54x54g11'
     self.assertTrue(arkpy.validate(ark))