FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF.F..FFF                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             [100%]
=============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================== FAILURES ===============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ FormatDecimalTestCase.test_compact __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <tests.test_numbers.FormatDecimalTestCase testMethod=test_compact>

    def test_compact(self):
>       assert numbers.format_compact_decimal(1, locale='en_US', format_type="short") == '1'
E       AssertionError: assert None == '1'
E        +  where None = <function format_compact_decimal at 0x709eb54a9090>(1, locale='en_US', format_type='short')
E        +    where <function format_compact_decimal at 0x709eb54a9090> = numbers.format_compact_decimal

tests/test_numbers.py:142: AssertionError
_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ FormatDecimalTestCase.test_decimals __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <tests.test_numbers.FormatDecimalTestCase testMethod=test_decimals>

    def test_decimals(self):
        """Test significant digits patterns"""
>       assert numbers.format_decimal(decimal.Decimal('1.2345'), '#.00', locale='en_US') == '1.23'
E       AssertionError: assert None == '1.23'
E        +  where None = <function format_decimal at 0x709eb54a9000>(Decimal('1.2345'), '#.00', locale='en_US')
E        +    where <function format_decimal at 0x709eb54a9000> = numbers.format_decimal
E        +    and   Decimal('1.2345') = <class 'decimal.Decimal'>('1.2345')
E        +      where <class 'decimal.Decimal'> = decimal.Decimal

tests/test_numbers.py:82: AssertionError
_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ FormatDecimalTestCase.test_default_rounding ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <tests.test_numbers.FormatDecimalTestCase testMethod=test_default_rounding>

    def test_default_rounding(self):
        """
        Testing Round-Half-Even (Banker's rounding)

        A '5' is rounded to the closest 'even' number
        """
>       assert numbers.format_decimal(5.5, '0', locale='sv') == '6'
E       AssertionError: assert None == '6'
E        +  where None = <function format_decimal at 0x709eb54a9000>(5.5, '0', locale='sv')
E        +    where <function format_decimal at 0x709eb54a9000> = numbers.format_decimal

tests/test_numbers.py:53: AssertionError
_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ FormatDecimalTestCase.test_formatting_of_very_small_decimals _____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <tests.test_numbers.FormatDecimalTestCase testMethod=test_formatting_of_very_small_decimals>

    def test_formatting_of_very_small_decimals(self):
        # previously formatting very small decimals could lead to a type error
        # because the Decimal->string conversion was too simple (see #214)
        number = decimal.Decimal("7E-7")
>       assert numbers.format_decimal(number, format="@@@", locale='en_US') == '0.000000700'
E       AssertionError: assert None == '0.000000700'
E        +  where None = <function format_decimal at 0x709eb54a9000>(Decimal('7E-7'), format='@@@', locale='en_US')
E        +    where <function format_decimal at 0x709eb54a9000> = numbers.format_decimal

tests/test_numbers.py:112: AssertionError
______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ FormatDecimalTestCase.test_group_separator ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <tests.test_numbers.FormatDecimalTestCase testMethod=test_group_separator>

    def test_group_separator(self):
>       assert numbers.format_decimal(29567.12, locale='en_US', group_separator=False) == '29567.12'
E       AssertionError: assert None == '29567.12'
E        +  where None = <function format_decimal at 0x709eb54a9000>(29567.12, locale='en_US', group_separator=False)
E        +    where <function format_decimal at 0x709eb54a9000> = numbers.format_decimal

tests/test_numbers.py:125: AssertionError
_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ FormatDecimalTestCase.test_nan_and_infinity ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <tests.test_numbers.FormatDecimalTestCase testMethod=test_nan_and_infinity>

    def test_nan_and_infinity(self):
>       assert numbers.format_decimal(decimal.Decimal('Infinity'), locale='en_US') == '∞'
E       AssertionError: assert None == '∞'
E        +  where None = <function format_decimal at 0x709eb54a9000>(Decimal('Infinity'), locale='en_US')
E        +    where <function format_decimal at 0x709eb54a9000> = numbers.format_decimal
E        +    and   Decimal('Infinity') = <class 'decimal.Decimal'>('Infinity')
E        +      where <class 'decimal.Decimal'> = decimal.Decimal

tests/test_numbers.py:115: AssertionError
_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ FormatDecimalTestCase.test_patterns __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <tests.test_numbers.FormatDecimalTestCase testMethod=test_patterns>

    def test_patterns(self):
>       assert numbers.format_decimal(12345, '##0', locale='en_US') == '12345'
E       AssertionError: assert None == '12345'
E        +  where None = <function format_decimal at 0x709eb54a9000>(12345, '##0', locale='en_US')
E        +    where <function format_decimal at 0x709eb54a9000> = numbers.format_decimal

tests/test_numbers.py:35: AssertionError
____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ FormatDecimalTestCase.test_scientific_notation ____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <tests.test_numbers.FormatDecimalTestCase testMethod=test_scientific_notation>

    def test_scientific_notation(self):
>       assert numbers.format_scientific(0.1, '#E0', locale='en_US') == '1E-1'
E       AssertionError: assert None == '1E-1'
E        +  where None = <function format_scientific at 0x709eb54a9360>(0.1, '#E0', locale='en_US')
E        +    where <function format_scientific at 0x709eb54a9360> = numbers.format_scientific

tests/test_numbers.py:88: AssertionError
_______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________<response clipped><NOTE>Due to the max output limit, only part of the full response has been shown to you.</NOTE>==========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
FAILED tests/test_numbers.py::FormatDecimalTestCase::test_compact - AssertionError: assert None == '1'
FAILED tests/test_numbers.py::FormatDecimalTestCase::test_decimals - AssertionError: assert None == '1.23'
FAILED tests/test_numbers.py::FormatDecimalTestCase::test_default_rounding - AssertionError: assert None == '6'
FAILED tests/test_numbers.py::FormatDecimalTestCase::test_formatting_of_very_small_decimals - AssertionError: assert None == '0.000000700'
FAILED tests/test_numbers.py::FormatDecimalTestCase::test_group_separator - AssertionError: assert None == '29567.12'
FAILED tests/test_numbers.py::FormatDecimalTestCase::test_nan_and_infinity - AssertionError: assert None == '∞'
FAILED tests/test_numbers.py::FormatDecimalTestCase::test_patterns - AssertionError: assert None == '12345'
FAILED tests/test_numbers.py::FormatDecimalTestCase::test_scientific_notation - AssertionError: assert None == '1E-1'
FAILED tests/test_numbers.py::FormatDecimalTestCase::test_significant_digits - AssertionError: assert None == '120000'
FAILED tests/test_numbers.py::FormatDecimalTestCase::test_subpatterns - AssertionError: assert None == '-12,345'
FAILED tests/test_numbers.py::NumberParsingTestCase::test_can_parse_decimals - AssertionError: assert Decimal('1099.98') == None
FAILED tests/test_numbers.py::NumberParsingTestCase::test_parse_decimal_strict_mode - Failed: DID NOT RAISE <class 'babel.numbers.NumberFormatError'>
FAILED tests/test_numbers.py::test_list_currencies - assert False
FAILED tests/test_numbers.py::test_validate_currency - Failed: DID NOT RAISE <class 'babel.numbers.UnknownCurrencyError'>
FAILED tests/test_numbers.py::test_is_currency - AssertionError: assert None
FAILED tests/test_numbers.py::test_normalize_currency - AssertionError: assert None == 'EUR'
FAILED tests/test_numbers.py::test_get_currency_name - AssertionError: assert None == 'US Dollar'
FAILED tests/test_numbers.py::test_get_currency_symbol - AssertionError: assert None == '$'
FAILED tests/test_numbers.py::test_get_currency_precision - AssertionError: assert None == 2
FAILED tests/test_numbers.py::test_get_currency_unit_pattern - AssertionError: assert None == '{0} {1}'
FAILED tests/test_numbers.py::test_get_territory_currencies - AssertionError: assert None == ['ATS']
FAILED tests/test_numbers.py::test_get_decimal_symbol - AssertionError: assert None == '.'
FAILED tests/test_numbers.py::test_get_plus_sign_symbol - AssertionError: assert None == '+'
FAILED tests/test_numbers.py::test_get_minus_sign_symbol - AssertionError: assert None == '-'
FAILED tests/test_numbers.py::test_get_exponential_symbol - AssertionError: assert None == 'E'
FAILED tests/test_numbers.py::test_get_group_symbol - AssertionError: assert None == ','
FAILED tests/test_numbers.py::test_get_infinity_symbol - AssertionError: assert None == '∞'
FAILED tests/test_numbers.py::test_decimal_precision - AssertionError: assert None == 2
FAILED tests/test_numbers.py::test_format_decimal - AssertionError: assert None == '1,099'
FAILED tests/test_numbers.py::test_format_decimal_precision[10000-10,000] - AssertionError: assert None == '10,000'
FAILED tests/test_numbers.py::test_format_decimal_precision[1-1] - AssertionError: assert None == '1'
FAILED tests/test_numbers.py::test_format_decimal_precision[1.0-1] - AssertionError: assert None == '1'
FAILED tests/test_numbers.py::test_format_decimal_precision[1.1-1.1] - AssertionError: assert None == '1.1'
FAILED tests/test_numbers.py::test_format_decimal_precision[1.11-1.11] - AssertionError: assert None == '1.11'
FAILED tests/test_numbers.py::test_format_decimal_precision[1.110-1.11] - AssertionError: assert None == '1.11'
FAILED tests/test_numbers.py::test_format_decimal_precision[1.001-1.001] - AssertionError: assert None == '1.001'
FAILED tests/test_numbers.py::test_format_decimal_precision[1.00100-1.001] - AssertionError: assert None == '1.001'
FAILED tests/test_numbers.py::test_format_decimal_precision[01.00100-1.001] - AssertionError: assert None == '1.001'
FAILED tests/test_numbers.py::test_format_decimal_precision[101.00100-101.001] - AssertionError: assert None == '101.001'
FAILED tests/test_numbers.py::test_format_decimal_precision[00000-0] - AssertionError: assert None == '0'
FAILED tests/test_numbers.py::test_format_decimal_precision[0-0] - AssertionError: assert None == '0'
FAILED tests/test_numbers.py::test_format_decimal_precision[0.0-0] - AssertionError: assert None == '0'
FAILED tests/test_numbers.py::test_format_decimal_precision[0.1-0.1] - AssertionError: assert None == '0.1'
FAILED tests/test_numbers.py::test_format_decimal_precision[0.11-0.11] - AssertionError: assert None == '0.11'
FAILED tests/test_numbers.py::test_format_decimal_precision[0.110-0.11] - AssertionError: assert None == '0.11'
FAILED tests/test_numbers.py::test_format_decimal_precision[0.001-0.001] - AssertionError: assert None == '0.001'
FAILED tests/test_numbers.py::test_format_decimal_precision[0.00100-0.001] - AssertionError: assert None == '0.001'
FAILED tests/test_numbers.py::test_format_decimal_precision[00.00100-0.001] - AssertionError: assert None == '0.001'
FAILED tests/test_numbers.py::test_format_decimal_precision[000.00100-0.001] - AssertionError: assert None == '0.001'
FAILED tests/test_numbers.py::test_format_decimal_quantization - AttributeError: 'NoneType' object has no attribute 'endswith'
FAILED tests/test_numbers.py::test_format_currency - AssertionError: assert None == '$1,099.98'
FAILED tests/test_numbers.py::test_format_currency_format_type - AssertionError: assert None == '$1,099.98'
FAILED tests/test_numbers.py::test_format_compact_currency - AssertionError: assert None == '$1'
FAILED tests/test_numbers.py::test_format_compact_currency_invalid_format_type - Failed: DID NOT RAISE <class 'babel.numbers.UnknownCurrencyFormatError'>
FAILED tests/test_numbers.py::test_format_currency_precision[10000-$10,000.00] - AssertionError: assert None == '$10,000.00'
FAILED tests/test_numbers.py::test_format_currency_precision[1-$1.00] - AssertionError: assert None == '$1.00'
FAILED tests/test_numbers.py::test_format_currency_precision[1.0-$1.00] - AssertionError: assert None == '$1.00'
FAILED tests/test_numbers.py::test_format_currency_precision[1.1-$1.10] - AssertionError: assert None == '$1.10'
FAILED tests/test_numbers.py::test_format_currency_precision[1.11-$1.11] - AssertionError: assert None == '$1.11'
FAILED tests/test_numbers.py::test_format_currency_precision[1.110-$1.11] - AssertionError: assert None == '$1.11'
FAILED tests/test_numbers.py::test_format_currency_precision[1.001-$1.001] - AssertionError: assert None == '$1.001'
FAILED tests/test_numbers.py::test_format_currency_precision[1.00100-$1.001] - AssertionError: assert None == '$1.001'
FAILED tests/test_numbers.py::test_format_currency_precision[01.00100-$1.001] - AssertionError: assert None == '$1.001'
FAILED tests/test_numbers.py::test_format_currency_precision[101.00100-$101.001] - AssertionError: assert None == '$101.001'
FAILED tests/test_numbers.py::test_format_currency_precision[00000-$0.00] - AssertionError: assert None == '$0.00'
FAILED tests/test_numbers.py::test_format_currency_precision[0-$0.00] - AssertionError: assert None == '$0.00'
FAILED tests/test_numbers.py::test_format_currency_precision[0.0-$0.00] - AssertionError: assert None == '$0.00'
FAILED tests/test_numbers.py::test_format_currency_precision[0.1-$0.10] - AssertionError: assert None == '$0.10'
FAILED tests/test_numbers.py::test_format_currency_precision[0.11-$0.11] - AssertionError: assert None == '$0.11'
FAILED tests/test_numbers.py::test_format_currency_precision[0.110-$0.11] - AssertionError: assert None == '$0.11'
FAILED tests/test_numbers.py::test_format_currency_precision[0.001-$0.001] - AssertionError: assert None == '$0.001'
FAILED tests/test_numbers.py::test_format_currency_precision[0.00100-$0.001] - AssertionError: assert None == '$0.001'
FAILED tests/test_numbers.py::test_format_currency_precision[00.00100-$0.001] - AssertionError: assert None == '$0.001'
FAILED tests/test_numbers.py::test_format_currency_precision[000.00100-$0.001] - AssertionError: assert None == '$0.001'
FAILED tests/test_numbers.py::test_format_currency_quantization - AttributeError: 'NoneType' object has no attribute 'find'
FAILED tests/test_numbers.py::test_format_currency_long_display_name - AssertionError: assert None == '1,099.98 US dollars'
FAILED tests/test_numbers.py::test_format_currency_long_display_name_all - AttributeError: 'NoneType' object has no attribute 'find'
FAILED tests/test_numbers.py::test_format_currency_long_display_name_custom_format - AssertionError: assert None == '1099.98 US dollars'
FAILED tests/test_numbers.py::test_format_percent - AssertionError: assert None == '34%'
FAILED tests/test_numbers.py::test_format_percent_precision[100-10,000%] - AssertionError: assert None == '10,000%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.01-1%0] - AssertionError: assert None == '1%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.010-1%] - AssertionError: assert None == '1%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.011-1.1%0] - AssertionError: assert None == '1.1%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.0111-1.11%] - AssertionError: assert None == '1.11%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.01110-1.11%] - AssertionError: assert None == '1.11%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.01001-1.001%] - AssertionError: assert None == '1.001%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.0100100-1.001%] - AssertionError: assert None == '1.001%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.010100100-1.01001%] - AssertionError: assert None == '1.01001%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.000000-0%] - AssertionError: assert None == '0%'
FAILED tests/test_numbers.py::test_format_percent_precision[0-0%] - AssertionError: assert None == '0%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.00-0%] - AssertionError: assert None == '0%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.01-1%1] - AssertionError: assert None == '1%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.011-1.1%1] - AssertionError: assert None == '1.1%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.0110-1.1%] - AssertionError: assert None == '1.1%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.0001-0.01%] - AssertionError: assert None == '0.01%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.000100-0.01%] - AssertionError: assert None == '0.01%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.0000100-0.001%] - AssertionError: assert None == '0.001%'
FAILED tests/test_numbers.py::test_format_percent_precision[0.00000100-0.0001%] - AssertionError: assert None == '0.0001%'
FAILED tests/test_numbers.py::test_format_percent_quantization - AttributeError: 'NoneType' object has no attribute 'find'
FAILED tests/test_numbers.py::test_format_scientific - AssertionError: assert None == '1E4'
FAILED tests/test_numbers.py::test_default_scientific_format - AssertionError: assert None == '1.2345E4'
FAILED tests/test_numbers.py::test_format_scientific_precision[10000-1E4] - AssertionError: assert None == '1E4'
FAILED tests/test_numbers.py::test_format_scientific_precision[1-1E0] - AssertionError: assert None == '1E0'
FAILED tests/test_numbers.py::test_format_scientific_precision[1.0-1E0] - AssertionError: assert None == '1E0'
FAILED tests/test_numbers.py::test_format_scientific_precision[1.1-1.1E0] - AssertionError: assert None == '1.1E0'
FAILED tests/test_numbers.py::test_format_scientific_precision[1.11-1.11E0] - AssertionError: assert None == '1.11E0'
FAILED tests/test_numbers.py::test_format_scientific_precision[1.110-1.11E0] - AssertionError: assert None == '1.11E0'
FAILED tests/test_numbers.py::test_format_scientific_precision[1.001-1.001E0] - AssertionError: assert None == '1.001E0'
FAILED tests/test_numbers.py::test_format_scientific_precision[1.00100-1.001E0] - AssertionError: assert None == '1.001E0'
FAILED tests/test_numbers.py::test_format_scientific_precision[01.00100-1.001E0] - AssertionError: assert None == '1.001E0'
FAILED tests/test_numbers.py::test_format_scientific_precision[101.00100-1.01001E2] - AssertionError: assert None == '1.01001E2'
FAILED tests/test_numbers.py::test_format_scientific_precision[00000-0E0] - AssertionError: assert None == '0E0'
FAILED tests/test_numbers.py::test_format_scientific_precision[0-0E0] - AssertionError: assert None == '0E0'
FAILED tests/test_numbers.py::test_format_scientific_precision[0.0-0E0] - AssertionError: assert None == '0E0'
FAILED tests/test_numbers.py::test_format_scientific_precision[0.1-1E-1] - AssertionError: assert None == '1E-1'
FAILED tests/test_numbers.py::test_format_scientific_precision[0.11-1.1E-1] - AssertionError: assert None == '1.1E-1'
FAILED tests/test_numbers.py::test_format_scientific_precision[0.110-1.1E-1] - AssertionError: assert None == '1.1E-1'
FAILED tests/test_numbers.py::test_format_scientific_precision[0.001-1E-3] - AssertionError: assert None == '1E-3'
FAILED tests/test_numbers.py::test_format_scientific_precision[0.00100-1E-3] - AssertionError: assert None == '1E-3'
FAILED tests/test_numbers.py::test_format_scientific_precision[00.00100-1E-3] - AssertionError: assert None == '1E-3'
FAILED tests/test_numbers.py::test_format_scientific_precision[000.00100-1E-3] - AssertionError: assert None == '1E-3'
FAILED tests/test_numbers.py::test_format_scientific_quantization - AttributeError: 'NoneType' object has no attribute 'find'
FAILED tests/test_numbers.py::test_parse_number - AssertionError: assert None == 1099
FAILED tests/test_numbers.py::test_parse_decimal - AssertionError: assert None == Decimal('1099.98')
FAILED tests/test_numbers.py::test_parse_grouping - AssertionError: assert None == (1000, 1000)
FAILED tests/test_numbers.py::test_parse_pattern_negative - AttributeError: 'NumberPattern' object has no attribute 'prefix'
FAILED tests/test_numbers.py::test_parse_decimal_nbsp_heuristics - AssertionError: assert None == Decimal('12345.123')
FAILED tests/test_numbers.py::test_very_small_decimal_no_quantization - AssertionError: assert None == '0.0000001'
FAILED tests/test_numbers.py::test_single_quotes_in_pattern - assert None == '@0.#120@01'
129 failed, 3 passed in 1.92s
[The command completed with exit code 1.]
[Current working directory: /workspace/babel]
[Python interpreter: /usr/bin/python]
[Command finished with exit code 1]