File: signals.py

package info (click to toggle)
python-gpyconf 0.2-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 416 kB
  • ctags: 590
  • sloc: python: 1,980; makefile: 87; sh: 4
file content (19 lines) | stat: -rw-r--r-- 531 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Tests wether signal communication works.

import unittest

class StorageTestCase(unittest.TestCase):
    def setUp(self):
        from all_fields import AllFieldsTest
        self.conf = AllFieldsTest()
        self.conf.connect('field-value-changed', self.field_value_changed_cb)

    def field_value_changed_cb(self, sender, field_name, new_value):
        self.assertEqual(self.conf.fields[field_name].value, new_value)

    def runTest(self):
        self.conf.run_frontend()


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