예제 #1
0
 def test_ordered(self):
     self.assertTrue(is_ordered((1, 2, 3)))
     self.assertFalse(is_ordered((1, 3, 2)))
     self.assertTrue(is_ordered((3, 2, 1), relation=operator.gt))
예제 #2
0
 def test_custom_operator(self):
     assert is_ordered((3, 2, 1), relation=operator.gt)
예제 #3
0
 def test_ordered(self):
     assert is_ordered((1, 2, 3))
예제 #4
0
 def test_not_ordered(self):
     assert not is_ordered((1, 3, 2))
예제 #5
0
 def test_ordered(self):
     self.assertTrue(is_ordered((1, 2, 3)))
     self.assertFalse(is_ordered((1, 3, 2)))
     self.assertTrue(is_ordered((3, 2, 1), relation=operator.gt))