File: testgnome.py

package info (click to toggle)
gnome-python 2.12.4-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,804 kB
  • ctags: 813
  • sloc: sh: 8,593; ansic: 7,747; python: 1,811; makefile: 333; xml: 54
file content (13 lines) | stat: -rw-r--r-- 369 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
import unittest
import pygtk; pygtk.require("2.0")
import common
import tempfile
from common import gnome

class GnomeTest(unittest.TestCase):
    def testProgramInit(self):
        prog = gnome.program_init("foo", "bar", properties={"app-libdir": "foo"})
        self.assertEqual(prog.get_property("app-libdir"), "foo")

if __name__ == '__main__':
    unittest.main()