예제 #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([]))
예제 #5
0
 def test_out_of_range(self):
     self.failUnless(
         jsonops.array_tail(range(3), "7") == jsonops.pprint([]))
예제 #6
0
 def test_normal(self):
     self.failUnless(
         jsonops.array_tail(range(9), "7") == jsonops.pprint([7, 8]))
예제 #7
0
 def test_one(self):
     self.failUnless(
         jsonops.array_tail([1], "0") == jsonops.pprint([1]))
예제 #8
0
 def test_empty(self):
     self.failUnless(
         jsonops.array_tail([], "1") == jsonops.pprint([]))