Mercurial > hg > configuration
comparison tests/unit.py @ 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 |
comparison
equal
deleted
inserted
replaced
| 32:da4d5c5831c6 | 33:b7d6a90b0bb5 |
|---|---|
| 49 | 49 |
| 50 # see what providers you got | 50 # see what providers you got |
| 51 json_provider = example.configuration_provider('json') | 51 json_provider = example.configuration_provider('json') |
| 52 self.assertTrue(isinstance(json_provider, configuration.JSON)) | 52 self.assertTrue(isinstance(json_provider, configuration.JSON)) |
| 53 | 53 |
| 54 # serialize to a temporary file | |
| 55 filename = tempfile.mktemp() | |
| 56 if os.path.exists(filename): | |
| 57 os.remove(filename) | |
| 58 | |
| 54 if __name__ == '__main__': | 59 if __name__ == '__main__': |
| 55 unittest.main() | 60 unittest.main() |
| 56 | 61 |
