'By default, always write student state, regardless of user agent.'

def test_write_by_default(self):

    with patch('courseware.model_data.UserStateCache.set_many') as patched_state_client_set_many:
        self._load_courseware('Mozilla/5.0    AppleWebKit/537.36')
        self.assertTrue(patched_state_client_set_many.called)
        patched_state_client_set_many.reset_mock()
        self._load_courseware('edX-downloader/0.1')
        self.assertTrue(patched_state_client_set_many.called)
