Mercurial > hg > configuration
changeset 33:b7d6a90b0bb5
setup for serialization testing
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 26 Mar 2012 20:31:12 -0700 |
parents | da4d5c5831c6 |
children | 79aca36abd9a |
files | tests/unit.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/unit.py Mon Mar 26 20:23:48 2012 -0700 +++ b/tests/unit.py Mon Mar 26 20:31:12 2012 -0700 @@ -51,6 +51,11 @@ json_provider = example.configuration_provider('json') self.assertTrue(isinstance(json_provider, configuration.JSON)) + # serialize to a temporary file + filename = tempfile.mktemp() + if os.path.exists(filename): + os.remove(filename) + if __name__ == '__main__': unittest.main()