Ignore:
Timestamp:
04/18/06 10:35:46 (8 years ago)
Author:
xi
Message:

Rename error-message to loader-error and add new examples.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/tests/test_errors.py

    r136 r140  
    66class TestErrors(test_appliance.TestAppliance): 
    77 
    8     def _testErrors(self, test_name, invalid_filename): 
     8    def _testLoaderErrors(self, test_name, invalid_filename): 
    99        #self._load(invalid_filename) 
    1010        self.failUnlessRaises(YAMLError, lambda: self._load(invalid_filename)) 
    1111 
    12     def _testStringErrors(self, test_name, invalid_filename): 
     12    def _testLoaderStringErrors(self, test_name, invalid_filename): 
    1313        #self._load_string(invalid_filename) 
    1414        self.failUnlessRaises(YAMLError, lambda: self._load_string(invalid_filename)) 
     
    3939            raise 
    4040 
    41 TestErrors.add_tests('testErrors', '.error-message') 
    42 TestErrors.add_tests('testStringErrors', '.error-message') 
     41TestErrors.add_tests('testLoaderErrors', '.loader-error') 
     42TestErrors.add_tests('testLoaderStringErrors', '.loader-error') 
    4343 
Note: See TracChangeset for help on using the changeset viewer.