/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to tests/test_notify.py

  • Committer: Curtis Hovey
  • Date: 2012-02-03 19:49:55 UTC
  • mto: This revision was merged to the branch mainline in revision 773.
  • Revision ID: sinzui.is@verizon.net-20120203194955-69jvr0mgu8igea0i
Updated bzr-notify to gtk3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
class BzrNotifyTestCase(tests.TestCase):
44
44
 
45
 
    def setUp(self):
46
 
        top = os.path.abspath(os.path.join(
47
 
            os.path.dirname(__file__), os.pardir))
48
 
        self.script = os.path.join(top, 'bzr-notify')
49
 
        self.env = dict(os.environ)
50
 
        self.env['BZR_PLUGINS_AT'] = 'gtk@%s' % top
51
 
        super(BzrNotifyTestCase, self).setUp()
52
 
 
53
45
    def test_smoketest(self):
54
46
        # This is a smoke test to verify the process starts.
55
47
        # The logic of the module must be moved into notify.py
56
48
        # where it can be properly tested.
 
49
        script = os.path.join(
 
50
            os.path.dirname(__file__), os.pardir, 'bzr-notify')
57
51
        bzr_notify = subprocess.Popen(
58
 
            [self.script, 'test'],
59
 
            stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=self.env)
 
52
            [script, 'test'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
60
53
        stdout, stderr = bzr_notify.communicate()
61
54
        self.assertEqual('', stdout)
62
 
        self.assertTrue(
63
 
            stderr in (
64
 
            '', 'ERROR:root:Could not find any typelib for AppIndicator3\n'))
 
55
        self.assertEqual('', stderr)