File: test_manager.py

package info (click to toggle)
python-podman 5.4.0.1-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 1,140 kB
  • sloc: python: 7,532; makefile: 82; sh: 75
file content (13 lines) | stat: -rw-r--r-- 349 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
import unittest

from podman.domain.pods_manager import PodsManager


class ManagerTestCase(unittest.TestCase):
    def test_prepare_model(self):
        with self.assertRaisesRegex(Exception, "^Can't create Pod from .*$"):
            PodsManager().prepare_model(attrs=("Sets", "Not", "supported"))


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