Top requests

Add support for asking for most asked questions.
Because I could not get it to work, but I might try in the future if I
have time.

On 12/12/2014 17:56, Thomas Tanon wrote:
>> +        self.assertStatusInt(q, 200)
>> +        q = {'id': 'foo', 'question': 'Baz qux?', 'responses': []}
>> +        self.assertStatusInt(q, 200)
>> +        q = {'id': 'foo', 'question': 'quux?', 'responses': []}
>> +        self.assertStatusInt(q, 200)
>> +        q = {'id': 'foo', 'question': 'Foo bar?', 'responses': []}
>> +        self.assertStatusInt(q, 200)
>> +        r = self.app.get('/', {'order': 'top'})
>> +        self.assertEqual(r.content_type, 'application/json')
>> +        r = json.loads(r.body.decode())
>> +        self.assertEqual(len(r), 3, r)
>> +        self.assertEqual(r[0][0], 'Baz qux?', r)
>> +        self.assertEqual(r[1][0], 'Foo bar?', r)
>> +        self.assertEqual(r[2][0], 'quux?', r)
>> +
>> +    """
> 
> Why is it commented?
> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/ProjetPP/PPP-Logger/pull/9/files#r21757040
>