Django

Code

Changeset 9388

Show
Ignore:
Timestamp:
11/10/08 14:01:51 (2 months ago)
Author:
kmtracey
Message:

Add tests mistakenly left out of r9397.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/forms/fields.py

    r9387 r9388  
    431431>>> f.clean('.002') == Decimal("0.002") 
    432432True 
     433 
     434>>> f = DecimalField(max_digits=2, decimal_places=2) 
     435>>> f.clean('.01') == Decimal(".01") 
     436True 
     437>>> f.clean('1.1') 
     438Traceback (most recent call last): 
     439... 
     440ValidationError: [u'Ensure that there are no more than 0 digits before the decimal point.'] 
     441 
    433442 
    434443# DateField ###################################################################