~mhall119/quickly/reboot-proposed

« back to all changes in this revision

Viewing changes to data/templates/ubuntu-application/project_root/tests/test_example.py

  • Committer: Michael Hall
  • Date: 2012-10-24 12:09:39 UTC
  • Revision ID: mhall119@ubuntu.com-20121024120939-g0smpquq4lyoxahz
Start on re-creating ubuntu-application template

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 python_name import Aboutcamel_case_nameDialog
 
13
 
 
14
class TestExample(unittest.TestCase):
 
15
    def setUp(self):
 
16
        self.Aboutcamel_case_nameDialog_members = [
 
17
        'AboutDialog', 'Aboutcamel_case_nameDialog', 'gettext', 'logger', 'logging']
 
18
 
 
19
    def test_Aboutcamel_case_nameDialog_members(self):
 
20
        all_members = dir(Aboutcamel_case_nameDialog)
 
21
        public_members = [x for x in all_members if not x.startswith('_')]
 
22
        public_members.sort()
 
23
        self.assertEqual(self.Aboutcamel_case_nameDialog_members, public_members)
 
24
 
 
25
if __name__ == '__main__':    
 
26
    unittest.main()