1
by David Planella
Initial project creation with Quickly! |
1 |
#!/usr/bin/python
|
2 |
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
|
|
3 |
### BEGIN LICENSE
|
|
20
by David Planella
Added license |
4 |
# Copyright (C) 2012 David Planella <david.planella@ubuntu.com>
|
5 |
# This program is free software: you can redistribute it and/or modify it
|
|
6 |
# under the terms of the GNU General Public License version 3, as published
|
|
7 |
# by the Free Software Foundation.
|
|
8 |
#
|
|
9 |
# This program is distributed in the hope that it will be useful, but
|
|
10 |
# WITHOUT ANY WARRANTY; without even the implied warranties of
|
|
11 |
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
|
|
12 |
# PURPOSE. See the GNU General Public License for more details.
|
|
13 |
#
|
|
14 |
# You should have received a copy of the GNU General Public License along
|
|
15 |
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
1
by David Planella
Initial project creation with Quickly! |
16 |
### END LICENSE
|
17 |
||
18 |
import sys |
|
19 |
import os.path |
|
20 |
import unittest |
|
21 |
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), ".."))) |
|
22 |
||
23 |
from qreator import AboutQreatorDialog |
|
24 |
||
25 |
class TestExample(unittest.TestCase): |
|
26 |
def setUp(self): |
|
27 |
self.AboutQreatorDialog_members = [ |
|
28 |
'AboutQreatorDialog', 'get_builder', 'gettext', 'Gtk'] |
|
29 |
||
30 |
def test_AboutQreatorDialog_members(self): |
|
31 |
all_members = dir(AboutQreatorDialog) |
|
32 |
public_members = [x for x in all_members if not x.startswith('_')] |
|
33 |
public_members.sort() |
|
34 |
self.assertEqual(self.AboutQreatorDialog_members, public_members) |
|
35 |
||
36 |
if __name__ == '__main__': |
|
37 |
unittest.main() |