summaryrefslogtreecommitdiff
path: root/tests/test_glib.py
blob: a36eca63d617a2e53150045da98820443b334a0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# -*- Mode: Python -*-

import unittest
import os.path

from gi.repository import GLib


class TestGLib(unittest.TestCase):
    def test_find_program_in_path(self):
        bash_path = GLib.find_program_in_path('bash')
        self.assertTrue(bash_path.endswith('/bash'))
        self.assertTrue(os.path.exists(bash_path))

        self.assertEqual(GLib.find_program_in_path('non existing'), None)