~dpm/qreator/snap

« back to all changes in this revision

Viewing changes to tests/test_example.py

  • Committer: David Planella
  • Date: 2012-01-15 07:02:18 UTC
  • Revision ID: david.planella@ubuntu.com-20120115070218-ce81y8a9icgsom54
Initial project creation with Quickly!

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
 
3
### BEGIN LICENSE
 
4
# This file is in the public domain
 
5
### END LICENSE
 
6
 
 
7
import sys
 
8
import os.path
 
9
import unittest
 
10
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), "..")))
 
11
 
 
12
from qreator import AboutQreatorDialog
 
13
 
 
14
class TestExample(unittest.TestCase):
 
15
    def setUp(self):
 
16
        self.AboutQreatorDialog_members = [
 
17
        'AboutQreatorDialog', 'get_builder', 'gettext', 'Gtk']
 
18
 
 
19
    def test_AboutQreatorDialog_members(self):
 
20
        all_members = dir(AboutQreatorDialog)
 
21
        public_members = [x for x in all_members if not x.startswith('_')]
 
22
        public_members.sort()
 
23
        self.assertEqual(self.AboutQreatorDialog_members, public_members)
 
24
 
 
25
if __name__ == '__main__':    
 
26
    unittest.main()