~mmcg069/software-center/pathbar-clip-fix

« back to all changes in this revision

Viewing changes to test/test_addons.py

  • Committer: Michael Vogt
  • Date: 2010-08-27 13:40:55 UTC
  • mfrom: (1081.1.1 addons-provides)
  • Revision ID: michael.vogt@ubuntu.com-20100827134055-fjg6y4r1sma4lhwo
* merged lp:~ilidrissi.amine/software-center/addons-provides and
  added test
* softwarecenter/apt/aptcache.py: Packages that enhance a package that
  is provided by the main app are now add-ons (LP: #625252)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    def test_enhances(self):
31
31
        res = self.cache.get_addons("gwenview")
32
32
        self.assertEqual(res, ([], ["kipi-plugins"]))
 
33
 
 
34
    def test_enhances_with_virtual_pkgs(self):
 
35
        res = self.cache.get_addons("bibletime")
 
36
        self.assertTrue("sword-text-tr" in res[1])
 
37
        self.assertTrue(len(res[1]) > 5)
33
38
        
34
39
 
35
40
    def test_lonley_dependency(self):