def test_record_user_started_state_translation_tutorial(self): # Testing of the user translation tutorial firsttime state storage. user_id = 'someUser' username = '******' user_services.create_new_user(user_id, '*****@*****.**') user_services.set_username(user_id, username) user_services.record_user_started_state_translation_tutorial(user_id) user_settings = user_services.get_user_settings(user_id) self.assertIsInstance( user_settings.last_started_state_translation_tutorial, datetime.datetime) self.assertTrue( user_settings.last_started_state_translation_tutorial is not None)
def post(self, unused_exploration_id): """Handles POST requests.""" user_services.record_user_started_state_translation_tutorial( self.user_id) self.render_json({})