~compiz-team/compiz/compiz.fix_1005569

« back to all changes in this revision

Viewing changes to compizconfig/compizconfig-python/tests/test_plugin.py

  • Committer: Daniel van Vugt
  • Author(s): smspillaz
  • Date: 2012-05-28 06:20:50 UTC
  • mfrom: (3225.7.1 compiz)
  • Revision ID: daniel.van.vugt@canonical.com-20120528062050-u5038pad1jhwilmj
Don't read plugin.Initialized and test the value.

The python bindings indicate that all this does is return whether or not
the plugin is loaded, which is user-configurable and not deterministic.

      property Initialized:
          def __get__ (self):
              return bool (self.loaded)

As such, we shouldn't be testing that value

(LP: #1004848)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
        self.assertTrue (plugin.LongDesc is not None)
16
16
        self.assertTrue (plugin.Category is not None)
17
17
        self.assertTrue (plugin.Features is not None)
18
 
        self.assertTrue (plugin.Initialized is True)
19
18
 
20
19
if __name__ == '__main__':
21
20
    unittest.main()