def test_empty(self): self.assertTrue(is_counting_down([]))
def test_one_number(self): self.assertTrue(is_counting_down([1]))
def test_skipping_numbers(self): self.assertFalse(is_counting_down([4, 3, 1]))
def test_repeating_numbers(self): self.assertFalse(is_counting_down([4, 3, 2, 2, 1]))
def test_lazy_strict_sequence(self): self.assertTrue(is_counting_down(reversed(xrange(10))))
def test_strict_sequence(self): self.assertTrue(is_counting_down([5, 4, 3, 2, 1]))