import unittest2

from querylist import QueryList

class QueryListActsAsList(unittest2.TestCase):
    """QueryList should behave as lists behave"""
    def setUp(self):
        self.src_list = [{'foo': 1}, {'foo': 2}, {'foo': 3}]
        self.query_list = QueryList(self.src_list)

    def test_QueryList_items_are_equal_to_its_source_lists_items(self):
        self.assertEqual(self.src_list, self.query_list)

    def test_QueryList_length_is_equal_to_its_source_lists_length(self):
        self.assertEqual(len(self.src_list), len(self.query_list))

    def test_QueryLists_can_append_like_lists(self):
        dbl_list = self.src_list + self.src_list
        dbl_query_list = self.query_list + self.query_list

        self.assertEqual(dbl_query_list, dbl_list)
@@ -111,16 +111,17 @@
 List
+s
  should 
 beha
@@ -120,30 +120,27 @@
 uld 
-behave as lists behave
+act just like lists
 %22%22%22%0A
@@ -752,12 +752,269 @@
 t, dbl_list)
+%0A%0A    def test_QueryList_slicing_works_like_list_slicing(self):%0A        self.assertEqual(self.query_list%5B:2%5D, self.src_list%5B:2%5D)%0A%0A    def test_QueryList_indexing_works_like_list_indexing(self):%0A        self.assertEqual(self.query_list%5B1%5D, self.src_list%5B1%5D)%0A

Add some more acts as list tests.