diff options
author | Code Raguet <ignacio.code@gmail.com> | 2013-09-06 13:28:48 (GMT) |
---|---|---|
committer | Code Raguet <ignacio.code@gmail.com> | 2013-09-06 16:13:01 (GMT) |
commit | e7038628b5270c2ddf8577e734863c150ec05ddd (patch) | |
tree | 959aa51efe15687d4c261b7ea682d8c3c064fbf5 | |
parent | df1e10850c68f54399858a5a269e2f0c29d65bcb (diff) |
move json_construc method to module level function
-rw-r--r-- | webapp/polls/tests/poll_result_file_tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/polls/tests/poll_result_file_tests.py b/webapp/polls/tests/poll_result_file_tests.py index 85290fe..e1f9a7d 100644 --- a/webapp/polls/tests/poll_result_file_tests.py +++ b/webapp/polls/tests/poll_result_file_tests.py @@ -7,6 +7,10 @@ from utils.test import MongoTestCase from django.conf import settings +def json_construc(data): + return json.dumps(data, sort_keys=True, indent=4, separators=(',', ': ')) + + class PollResultFileTest(MongoTestCase): def json_construc(self, data): |