Changeset 404

Show
Ignore:
Timestamp:
09/20/07 17:57:03 (1 year ago)
Author:
bjourne
Message:

Add test for PixbufDrawOpts and its attributes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pygtkimageview/tests/test_module.py

    r402 r404  
    242242    ''' 
    243243    assert hasattr(gtkimageview, 'PixbufDrawCache') 
     244 
     245def test_pixbuf_draw_opts_attrs(): 
     246    ''' 
     247    Ensure that all required attributes are present on the 
     248    PixbufDrawOpts object. 
     249    ''' 
     250    obj = gtkimageview.PixbufDrawOpts() 
     251    assert hasattr(obj, 'zoom') 
     252    assert hasattr(obj, 'zoom_rect') 
     253    assert hasattr(obj, 'widget_x') 
     254    assert hasattr(obj, 'widget_y') 
     255    assert hasattr(obj, 'interp') 
     256    assert hasattr(obj, 'pixbuf') 
     257    assert hasattr(obj, 'check_color1') 
     258    assert hasattr(obj, 'check_color2') 
    244259     
    245      
    246