~brendan-donegan/software-center/test_addons_no_synaptic

« back to all changes in this revision

Viewing changes to test/test_database.py

  • Committer: Gary Lasker
  • Date: 2011-12-13 17:34:14 UTC
  • mfrom: (2596.1.2 support-link)
  • Revision ID: gary.lasker@canonical.com-20111213173414-4bpg68q8uylwzn3r
add support for the scagent "Support Website" feature

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
                            "ARCHIVE_PPA value incorrect, got '%s'" % ppa)
121
121
            self.assertTrue(
122
122
                doc.get_value(XapianValues.ICON).startswith("sc-agent"))
 
123
            # check support url in the DB
 
124
            url=doc.get_value(XapianValues.SUPPORT_SITE_URL)
 
125
            if url:
 
126
                self.assertTrue(url.startswith("http") or
 
127
                                url.startswith("mailto:"))
123
128
 
124
129
    def test_license_string_data_from_software_center_agent(self):
125
130
        from softwarecenter.testutils import get_test_pkg_info