def test_prepend(self):
     self.assertJson(query.prepend([1, 2], [3, 4]),
                     '{"collection":[3,4],"prepend":[1,2]}')
示例#2
0
 def test_prepend(self):
     self.assertEqual(self._q(query.prepend([1, 2, 3], [4, 5, 6])),
                      [1, 2, 3, 4, 5, 6])