def test_validate_te_lle(self): input_1 = [5., 60., 6., 61.] input_2 = ([5., 60., 5., 61.], [5., 60., 4., 61.], [5., 60., 6., 59.]) input_3 = [60., 5., 61.] self.assertEqual(Domain._validate_te_lle(input_1), None) for inp in input_2: with self.assertRaises(ValueError) as opt_err: Domain._validate_te_lle(inp) self.assertEqual(opt_err.message, 'Min cannot be bigger than max: ' '<-te x_min y_min x_max y_max> or ' '<-lle min_lon min_lat max_lon max_lat>') with self.assertRaises(ValueError) as opt_err: Domain._validate_te_lle(input_3) self.assertEqual(opt_err.args[0], '-te and -lle requires exactly 4 parameters ' '(3 given): <-te x_min y_min x_max y_max> or <-lle' ' min_lon min_lat max_lon max_lat>')