diff options
author | benselme <benselme@gmail.com> | 2015-01-09 08:51:54 -0500 |
---|---|---|
committer | benselme <benselme@gmail.com> | 2015-01-09 08:51:54 -0500 |
commit | 022b8fd62a5b2e85b3aa254ceee0b5bea15ac1eb (patch) | |
tree | 1d75a26e65622e17e80560a938cb172e6215ca76 /tests | |
parent | fb808af2f681232c14b15f39149ff2e190dfcaca (diff) | |
download | babel-022b8fd62a5b2e85b3aa254ceee0b5bea15ac1eb.tar.gz |
PEP8
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_plural.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/test_plural.py b/tests/test_plural.py index 166e227..122d64d 100644 --- a/tests/test_plural.py +++ b/tests/test_plural.py @@ -81,8 +81,8 @@ def test_plural_within_rules(): assert repr(p) == "<PluralRule 'one: n is 1, few: n within 2,4,7..9'>" assert plural.to_javascript(p) == ( "(function(n) { " - "return ((n == 2) || (n == 4) || (n >= 7 && n <= 9))" - " ? 'few' : (n == 1) ? 'one' : 'other'; })") + "return ((n == 2) || (n == 4) || (n >= 7 && n <= 9))" + " ? 'few' : (n == 1) ? 'one' : 'other'; })") assert plural.to_gettext(p) == ( 'nplurals=3; plural=(((n == 2) || (n == 4) || (n >= 7 && n <= 9))' ' ? 1 : (n == 1) ? 0 : 2)') @@ -193,13 +193,11 @@ class PluralRuleParserTestCase(unittest.TestCase): ('and', (self.n_eq(1), self.n_eq(2))) def test_or_and(self): - assert plural._Parser('n = 0 or n != 1 and n % 100 = 1..19' ).ast ==\ + assert plural._Parser('n = 0 or n != 1 and n % 100 = 1..19').ast == \ ('or', (self.n_eq(0), ('and', (plural.negate(self.n_eq(1)), ('relation', ('in', ('mod', (self.n, plural.value_node(100))), - (make_range_list((1, 19)))))) - ) - ) - )
\ No newline at end of file + (make_range_list((1, 19))))))) + )) |