~stewart/mythremote/quickly_trunk

« back to all changes in this revision

Viewing changes to tests/test_example.py

  • Committer: Stewart Smith
  • Date: 2012-02-05 04:40:51 UTC
  • Revision ID: stewart@flamingspork.com-20120205044051-b86m7edpcxosnziq
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 mythremote import AboutMythremoteDialog
 
13
 
 
14
class TestExample(unittest.TestCase):
 
15
    def setUp(self):
 
16
        self.AboutMythremoteDialog_members = [
 
17
        'AboutMythremoteDialog', 'get_builder', 'gettext', 'gtk']
 
18
 
 
19
    def test_AboutMythremoteDialog_members(self):
 
20
        all_members = dir(AboutMythremoteDialog)
 
21
        public_members = [x for x in all_members if not x.startswith('_')]
 
22
        public_members.sort()
 
23
        self.assertEqual(self.AboutMythremoteDialog_members, public_members)
 
24
 
 
25
if __name__ == '__main__':    
 
26
    unittest.main()