summaryrefslogtreecommitdiff
path: root/test/varlink/test_system.py
blob: 00848de2b8e80051de5a79f938411a16bedc5cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import unittest

from podman_testcase import PodmanTestCase


class TestSystemAPI(PodmanTestCase):
    def test_ping(self):
        response = self.podman.Ping()
        self.assertEqual('OK', response['ping']['message'])

    def test_GetVersion(self):
        response = self.podman.GetVersion()
        self.assertTrue(set(
            ['version', 'go_version', 'built', 'os_arch']
        ).issubset(response['version'].keys()))


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