Ignore:
Timestamp:
Jan 31, 2015, 7:12:40 PM (10 years ago)
Author:
steve
Message:

Moving test folders to tests foldersy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/lib/test/test_maxasc.py

    r9527 r9562  
    9595        in_file = os.path.join(test_path, 'test1.asc')
    9696        expected_file = os.path.join(test_path, 'test1_bad_num_lines.asc')
    97         self.failUnlessRaises(RuntimeError, MaxAsc,
     97        self.assertRaises(RuntimeError, MaxAsc,
    9898                              'test.out.asc',
    9999                              [in_file, expected_file])
     
    103103        in_file = os.path.join(test_path, 'test1.asc')
    104104        expected_file = os.path.join(test_path, 'test1_bad_num_lines.asc')
    105         self.failUnlessRaises(RuntimeError, MaxAsc,
     105        self.assertRaises(RuntimeError, MaxAsc,
    106106                              'test.out.asc',
    107107                              [in_file, expected_file])
     
    111111        in_file = os.path.join(test_path, 'test1.asc')
    112112        expected_file = os.path.join(test_path, 'test1_wrong_num_columns.asc')
    113         self.failUnlessRaises(RuntimeError, MaxAsc,
     113        self.assertRaises(RuntimeError, MaxAsc,
    114114                              'test.out.asc',
    115115                              [in_file, expected_file])
     
    119119        in_file = os.path.join(test_path, 'test1.asc')
    120120        MaxAsc('test1.out.asc', [in_file])
    121         self.failUnless(FilesEqual('test1.out.asc', in_file))
     121        self.assertTrue(FilesEqual('test1.out.asc', in_file))
    122122
    123123
     
    126126        in_file = os.path.join(test_path, 'test1.asc')
    127127        MaxAsc('test1.out.asc', [in_file] * 30)
    128         self.failUnless(FilesEqual('test1.out.asc', in_file))
     128        self.assertTrue(FilesEqual('test1.out.asc', in_file))
    129129
    130130    def test_different_input2(self):
     
    134134        expected_file = os.path.join(test_path, 'test2.expected.asc')
    135135        MaxAsc('test2.out.asc', [in_file, in_file2])
    136         self.failUnless(FilesEqual('test2.out.asc', expected_file))
     136        self.assertTrue(FilesEqual('test2.out.asc', expected_file))
    137137
    138138    def test_different_input3(self):
     
    143143        expected_file = os.path.join(test_path, 'test3.expected.asc')
    144144        MaxAsc('test3.out.asc', [in_file, in_file2, in_file3])
    145         self.failUnless(FilesEqual('test3.out.asc', expected_file))
     145        self.assertTrue(FilesEqual('test3.out.asc', expected_file))
    146146
    147147if __name__ == '__main__':
Note: See TracChangeset for help on using the changeset viewer.