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