Enabling hex serial numbers without breaking backward compatibility. (#779)

* Enabling hex serial numbers without breaking backward compatibility.

* Fixing tests.
This commit is contained in:
kevgliss
2017-05-05 11:04:09 -07:00
committed by GitHub
parent 381cd2e1ff
commit 9c9ca37586
4 changed files with 19 additions and 9 deletions

View File

@ -366,7 +366,8 @@ def test_certificate_get(client, token, status):
def test_certificate_get_body(client):
response_body = client.get(api.url_for(Certificates, certificate_id=1), headers=VALID_USER_HEADER_TOKEN).json
assert response_body['serial'] == "3E9"
assert response_body['serial'] == '1001'
assert response_body['serialHex'] == '3E9'
@pytest.mark.parametrize("token,status", [