Beispiel #1
0
 def test_then_by_descending_not_callable(self):
     a = ['sort', 'using', 'third', 'letter', 'then', 'second']
     b = Query(a).sort_increasing(lambda x: x[2])
     self.assertRaises(TypeError, lambda: b.then_decreasing("not callable"))
Beispiel #2
0
 def test_then_by_descending_not_callable(self):
     a = ['sort', 'using', 'third', 'letter', 'then', 'second']
     b = Query(a).sort_increasing(lambda x: x[2])
     self.assertRaises(TypeError, lambda: b.then_decreasing("not callable"))