File: test_dnf_const.py

package info (click to toggle)
dnf 4.24.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,820 kB
  • sloc: python: 27,723; xml: 771; sh: 131; makefile: 35
file content (31 lines) | stat: -rw-r--r-- 918 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- coding: utf-8 -*-


from __future__ import absolute_import
from __future__ import unicode_literals

import dnf

from .common import TestCase


class DnfConstApiTest(TestCase):
    def test_filename(self):
        # dnf.const.CONF_FILENAME
        self.assertHasAttr(dnf.const, "CONF_FILENAME")
        self.assertHasType(dnf.const.CONF_FILENAME, str)

    def test_group_package_types(self):
        # dnf.const.GROUP_PACKAGE_TYPES
        self.assertHasAttr(dnf.const, "GROUP_PACKAGE_TYPES")
        self.assertHasType(dnf.const.GROUP_PACKAGE_TYPES, tuple)

    def test_persistdir(self):
        # dnf.const.PERSISTDIR
        self.assertHasAttr(dnf.const, "PERSISTDIR")
        self.assertHasType(dnf.const.PERSISTDIR, str)

    def test_pluginconfpath(self):
        # dnf.const.PLUGINCONFPATH
        self.assertHasAttr(dnf.const, "PLUGINCONFPATH")
        self.assertHasType(dnf.const.PLUGINCONFPATH, str)