#!/usr/bin/env python # Copyright New York University and the in-toto contributors # SPDX-License-Identifier: Apache-2.0 """ test_common.py Santiago Torres-Arias Sept 26, 2017 See LICENSE for licensing information. Test the Signable and ValidationMixin class functions. """ import json import unittest from in_toto.models.common import Signable class TestSignable(unittest.TestCase): """Verifies Signable class.""" def test_load_repr_string_as_json(self): """Test load string returned by `Signable.repr` as JSON""" json.loads(repr(Signable())) if __name__ == "__main__": unittest.main()