def test_init_error(self):
        with pytest.raises(ValueError):
            Source('', 'mock_dir')
        with pytest.raises(ValueError):
            Source('http://mock.git', '')
Extract indexable attributes from an add-on.
dataset/ETHPy150Open jacebrowning/gitman/gitman/test/test_models_source.py/TestSource.test_init_error--crossover with--dataset/ETHPy150Open mozilla/addons-server/src/olympia/addons/indexers.py/AddonIndexer.extract_document