def test_index(self):
        res = self.client.get('/api/1/sources')
        assert res.status_code == 200, res
        assert res.json['total'] == 0, res.json
        self.login()
        res = self.client.get('/api/1/sources')
        assert res.status_code == 200, res
        assert res.json['total'] >= 1, res.json
dataset/ETHPy150Open pudo/aleph/aleph/tests/test_sources_api.py/SourcesApiTestCase.test_index/original