Changeset 3676

Show
Ignore:
Timestamp:
05/06/08 12:08:06 (7 months ago)
Author:
pobrien
Message:

UNASSIGNED should have a length of zero.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Schevo/schevo/constant.py

    r3306 r3676  
    3535        else: 
    3636            return -1 
     37 
     38    def __len__(cls): 
     39        return 0 
    3740 
    3841    def __str__(cls): 
  • trunk/Schevo/schevo/test/test_constant.py

    r3509 r3676  
    1515    def test_UNASSIGNED(self): 
    1616        assert label(UNASSIGNED) == '<UNASSIGNED>' 
     17        assert len(UNASSIGNED) == 0 
    1718        assert str(UNASSIGNED) == '' 
    1819        assert raises(TypeError, UNASSIGNED)