Exemplo n.º 1
0
def normalise_pmcid(identifier):
    try:
        identifier = pmcid.normalise(identifier)
        return identifier
    except ValueError:
        return None
Exemplo n.º 2
0
 def test_02_valid_PMCID(self):
     identifier = "PMC123456"
     identifier = pmcid.normalise(identifier)
     assert identifier == "PMC123456"
Exemplo n.º 3
0
 def test_01_normalise_PMCID(self):
     identifier = "123456"
     identifier = pmcid.normalise(identifier)
     assert identifier == "PMC123456", identifier
Exemplo n.º 4
0
def normalise_pmcid(identifier):
    try:
        identifier = pmcid.normalise(identifier)
        return identifier
    except ValueError:
        return None
Exemplo n.º 5
0
 def test_02_valid_PMCID(self):
     identifier = "PMC123456"
     identifier = pmcid.normalise(identifier)
     assert identifier == "PMC123456"
Exemplo n.º 6
0
 def test_01_normalise_PMCID(self):
     identifier = "123456"
     identifier = pmcid.normalise(identifier)
     assert identifier == "PMC123456", identifier