Beispiel #1
0
 def post(self):
    data = get_user_data(self)
    updated = utils.try_to_update_term(data, self.request.get('term'))
    self.redirect('/query')
Beispiel #2
0
 def test_try_to_update_term(self):
    """Test the term update routine."""
    data = TestData()
    term = 'chromatin[all]\n+AND+nature[journal]'
    success = utils.try_to_update_term(data, term)
    self.assertTrue(success)