OSG_Mugshot_fork/tests/test_example.py

27 lines
836 B
Python
Raw Normal View History

2013-07-12 17:56:24 +00:00
#!/usr/bin/python
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
### BEGIN LICENSE
# This file is in the public domain
### END LICENSE
import sys
import os.path
import unittest
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), "..")))
from mugshot import AboutMugshotDialog
class TestExample(unittest.TestCase):
def setUp(self):
self.AboutMugshotDialog_members = [
'AboutDialog', 'AboutMugshotDialog', 'gettext', 'logger', 'logging']
def test_AboutMugshotDialog_members(self):
all_members = dir(AboutMugshotDialog)
public_members = [x for x in all_members if not x.startswith('_')]
public_members.sort()
self.assertEqual(self.AboutMugshotDialog_members, public_members)
if __name__ == '__main__':
unittest.main()