def geojson2mongo_test(self):
        database = self.database
        db = self.db
        input_geojson = self.data_input_folder + "cupcakes.geojson"
        self.assertTrue(validate_geojson_from_file(input_geojson))
        feature_collection_to_mongodb(database, input_geojson, "testcupcakes")
        feature_collection = db["testcupcakes"].find({ })
        count = feature_collection.count()
        test_collection = json_util.dumps(feature_collection)
        self.assertTrue(count == 74, msg="Record count is " + str(count))
Testing that GeoJSON correctly gets put into the MongoDB instance database
dataset/ETHPy150Open JamesMilnerUK/Loxo/tests/converisontools_test.py/conversionTest.geojson2mongo_test