~dpm/qreator/snap

« back to all changes in this revision

Viewing changes to tests/test_example.py

  • Committer: David Planella
  • Date: 2012-05-17 13:54:29 UTC
  • Revision ID: david.planella@ubuntu.com-20120517135429-mwi2wspk3379jfrl
Refreshed logos

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import unittest
21
21
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), "..")))
22
22
 
23
 
 
 
23
from qreator import AboutQreatorDialog
 
24
 
 
25
class TestExample(unittest.TestCase):
 
26
    def setUp(self):
 
27
        self.AboutQreatorDialog_members = [
 
28
        'AboutQreatorDialog', 'get_builder', 'gettext', 'Gtk']
 
29
 
 
30
    def test_AboutQreatorDialog_members(self):
 
31
        all_members = dir(AboutQreatorDialog)
 
32
        public_members = [x for x in all_members if not x.startswith('_')]
 
33
        public_members.sort()
 
34
        self.assertEqual(self.AboutQreatorDialog_members, public_members)
24
35
 
25
36
if __name__ == '__main__':    
26
37
    unittest.main()