Changeset 2757 in products


Ignore:
Timestamp:
Aug 17, 2010 2:33:04 PM (14 years ago)
Author:
liebster
Message:

Add doctests of context and adapter

Location:
quintagroup.gdocs.spreadsheet/trunk/quintagroup/gdocs/spreadsheet/tests
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.gdocs.spreadsheet/trunk/quintagroup/gdocs/spreadsheet/tests/test_doctest.py

    r2725 r2757  
    66 
    77from quintagroup.gauth.interfaces import IGAuthUtility 
     8import quintagroup.gdocs.spreadsheet.content.gspreadsheet as gspreadsheet 
    89from quintagroup.gdocs.spreadsheet.tests import base 
    910 
     
    1415    import quintagroup.gdocs.spreadsheet.tests.adapters 
    1516 
     17 
     18def tearDown(test): 
     19    """This is the companion to setUp - it can be used to clean up the 
     20    test environment after each test. 
     21    """ 
    1622 
    1723def test_suite(): 
     
    2531                doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS, 
    2632            setUp=setUp, 
     33            tearDown=tearDown, 
    2734            ), 
     35        ztc.ZopeDocFileSuite('tests/test_adapters.txt', 
     36            package='quintagroup.gdocs.spreadsheet', 
     37            test_class=base.FunctionalTestCase, 
     38            optionflags=doctest.REPORT_ONLY_FIRST_FAILURE | 
     39                doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS, 
     40            setUp=setUp, 
     41            tearDown=tearDown, 
     42            ), 
     43        ztc.ZopeDocFileSuite('tests/test_context.txt', 
     44            package='quintagroup.gdocs.spreadsheet', 
     45            test_class=base.FunctionalTestCase, 
     46            optionflags=doctest.REPORT_ONLY_FIRST_FAILURE | 
     47                doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS, 
     48            setUp=setUp, 
     49            tearDown=tearDown, 
     50            ), 
     51 
    2852        ]) 
    2953 
Note: See TracChangeset for help on using the changeset viewer.