def test_out_of_range(self): self.failUnless(jsonops.array_tail(range(3), 7) == jsonops.pprint([]))
def test_one(self): self.failUnless(jsonops.array_tail([1], 0) == jsonops.pprint([1]))
def test_normal(self): self.failUnless(jsonops.array_tail(range(9), 7) == jsonops.pprint([7, 8]))
def test_empty(self): self.failUnless(jsonops.array_tail([], 1) == jsonops.pprint([]))