~submarine/ubuntu-scopes/zotero

« back to all changes in this revision

Viewing changes to tests/test_zotero.py

  • Committer: markjtully
  • Date: 2013-03-14 00:31:22 UTC
  • Revision ID: markjtully@gmail.com-20130314003122-vcj6mpttdgf2za4w
Fixed tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
    def test_valid_searches(self):
42
42
        self.scope_module.PATHS = ['tests/data/mock_zotero_pass/']
43
 
        expected_results = ['']
 
43
        expected_results = ['[Qualitative and quantitative analysis of fluoxetine hydrochloride by…',
 
44
                            'http://www.ncbi.nlm.nih.gov/pubmed/22812008']
44
45
        results = []
45
 
        for s in ['query']:
 
46
        for s in ['fluoxetine']:
46
47
            result_set = self.perform_query(s)
47
48
            results.append(result_set.results[0]['title'])
 
49
            results.append(result_set.results[0]['uri'])
48
50
        self.assertEqual(results, expected_results)
49
51
 
50
52
    def test_failing_search(self):