def test_mongo_piggyback_storage(self):
        self.client.get('/')
        result = self.storage.collection.find_one()
        assert result['blueprint'] is None
        assert result['ip_info'] is None
        assert result['status'] == 200
        assert result['remote_addr'] is None  # because of testing
        assert result['speed'].__class__ is float
        assert result['view_args'] == {}
        assert result['url'] == 'http://localhost/'
        assert result['authorization'] is False
        assert result['user_agent']['browser'] is None  # because of testing
        assert result['user_agent']['platform'] is None  # because of testing
        assert result['user_agent']['language'] is None  # because of testing
        assert result['user_agent']['version'] is None  # because of testing
        assert result['path'] == '/'
        assert type(result['date']) is datetime.datetime
Open the given spider for scraping and allocate resources for it
dataset/ETHPy150Open ashcrow/flask-track-usage/test/test_storage_mongo.py/TestMongoPiggybaclStorage.test_mongo_piggyback_storage--crossover with--dataset/ETHPy150Open scrapy/scrapy/scrapy/core/scraper.py/Scraper.open_spider