~rick-rickspencer3/+junk/jumper

« back to all changes in this revision

Viewing changes to tests/test_example.py

  • Committer: Rick Spencer
  • Date: 2011-09-07 09:19:38 UTC
  • Revision ID: rick.spencer@canonical.com-20110907091938-cxxescturvof9xvv
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 jumper import AboutJumperDialog
 
13
 
 
14
class TestExample(unittest.TestCase):
 
15
    def setUp(self):
 
16
        self.AboutJumperDialog_members = [
 
17
        'AboutJumperDialog', 'get_builder', 'gettext', 'gtk']
 
18
 
 
19
    def test_AboutJumperDialog_members(self):
 
20
        all_members = dir(AboutJumperDialog)
 
21
        public_members = [x for x in all_members if not x.startswith('_')]
 
22
        public_members.sort()
 
23
        self.assertEqual(self.AboutJumperDialog_members, public_members)
 
24
 
 
25
if __name__ == '__main__':    
 
26
    unittest.main()