Mercurial > p > roundup > code
view test/test_misc.py @ 5277:b580f61929e2
Removing richard from notification list. Verified that
he doesn't want to be on it anymore.
Date: Sun, 24 Sep 2017 14:58:24 +1000
To: rouiljsomewhere
From: Richard Jones <r1chardj0n3s at gmail.com>
Subject: Re: Do you still want new issues to roundup tracker sent to
you?
--94eb2c0da3aac771bb0559e84afb
Content-Type: text/plain; charset="UTF-8"
Thanks John, yes please do remove me.
Richard
On 24 September 2017 at 14:13, John P. Rouillard <rouilj at cs.umb.edu>
wrote:
> Hi Richard:
>
> I am working on updating the roundup tracker to
> get it ready for the current development code.
>
> As I was testing I noticed you are still in the
> list of email addresses getting new issue emails.
>
> Do you want to continue to receive these since
> you aren't actively developing roundup?
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 24 Sep 2017 18:44:48 -0400 |
| parents | e1e3531b4d9b |
| children | 9a09719b0d8e |
line wrap: on
line source
# misc tests import unittest from roundup.cgi.accept_language import parse class AcceptLanguageTest(unittest.TestCase): def testParse(self): self.assertEqual(parse("da, en-gb;q=0.8, en;q=0.7"), ['da', 'en_gb', 'en']) self.assertEqual(parse("en;q=0.2, fr;q=1"), ['fr', 'en']) self.assertEqual(parse("zn; q = 0.2 ,pt-br;q =1"), ['pt_br', 'zn']) self.assertEqual(parse("es-AR"), ['es_AR']) self.assertEqual(parse("es-es-cat"), ['es_es_cat']) self.assertEqual(parse(""), []) self.assertEqual(parse(None),[]) self.assertEqual(parse(" "), []) self.assertEqual(parse("en,"), ['en'])
