@@ -0,0 +1,751 @@
+import testutils%0Aimport json%0A%0A%0Aclass TestInsertDocument(testutils.BedquiltTestCase):%0A%0A    def test_insert_into_non_existant_collection(self):%0A        # create a collection 'testone'%0A        self.cur.execute(%22%22%22%0A        select bq_insert_document('people', '%7B%7D');%0A        %22%22%22.format(json.dumps(%7B%22_id%22: %22user@example.com%22,%0A                               %22name%22: %22Some User%22,%0A                               %22age%22: 20%7D)))%0A        result = self.cur.fetchone()%0A        print result%0A%0A        self.assertEqual(%0A            result, (%22user@example.com%22,)%0A        )%0A%0A        self.cur.execute(%22select bq_list_collections();%22)%0A        collections = self.cur.fetchall()%0A        self.assertIsNotNone(collections)%0A%0A        self.assertEqual(collections, %5B(%22people%22,)%5D)%0A

add tests for document insertion