Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
test.test_locale.TestCNumberFormatting Class Reference
Inheritance diagram for test.test_locale.TestCNumberFormatting:
Inheritance graph
[legend]
Collaboration diagram for test.test_locale.TestCNumberFormatting:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_grouping
def test_grouping_and_padding
def setUp
def tearDown

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Static Public Attributes

dictionary cooked_values

Detailed Description

Definition at line 285 of file test_locale.py.


Member Function Documentation

def test.test_locale.BaseCookedTest.setUp (   self) [inherited]

Reimplemented in test.test_locale.TestEnUSNumberFormatting.

Definition at line 58 of file test_locale.py.

00058 
00059     def setUp(self):
00060         locale._override_localeconv = self.cooked_values

Here is the caller graph for this function:

def test.test_locale.BaseCookedTest.tearDown (   self) [inherited]

Definition at line 61 of file test_locale.py.

00061 
00062     def tearDown(self):
00063         locale._override_localeconv = {}

Here is the caller graph for this function:

Definition at line 288 of file test_locale.py.

00288 
00289     def test_grouping(self):
00290         self._test_format("%.2f", 12345.67, grouping=True, out='12345.67')

Here is the call graph for this function:

Definition at line 291 of file test_locale.py.

00291 
00292     def test_grouping_and_padding(self):
00293         self._test_format("%9.2f", 12345.67, grouping=True, out=' 12345.67')
00294 

Here is the call graph for this function:


Member Data Documentation

Initial value:
{
        'currency_symbol': '',
        'decimal_point': '.',
        'frac_digits': 127,
        'grouping': [],
        'int_curr_symbol': '',
        'int_frac_digits': 127,
        'mon_decimal_point': '',
        'mon_grouping': [],
        'mon_thousands_sep': '',
        'n_cs_precedes': 127,
        'n_sep_by_space': 127,
        'n_sign_posn': 127,
        'negative_sign': '',
        'p_cs_precedes': 127,
        'p_sep_by_space': 127,
        'p_sign_posn': 127,
        'positive_sign': '',
        'thousands_sep': ''
    }

Definition at line 67 of file test_locale.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


The documentation for this class was generated from the following file: