Test full flow, including reset

This commit is contained in:
Vik Paruchuri
2013-05-08 18:15:57 -04:00
parent f26a258598
commit 4d759e9772
2 changed files with 29 additions and 0 deletions

View File

@@ -803,6 +803,18 @@ class CombinedOpenEndedV1Module():
return progress_object
def out_of_sync_error(self, get, msg=''):
"""
return dict out-of-sync error message, and also log.
"""
#This is a dev_facing_error
log.warning("Combined module state out sync. state: %r, get: %r. %s",
self.state, get, msg)
#This is a student_facing_error
return {'success': False,
'error': 'The problem state got out-of-sync. Please try reloading the page.'}
class CombinedOpenEndedV1Descriptor():
"""