File: test_dnf.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 (28 lines) | stat: -rw-r--r-- 612 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
# -*- coding: utf-8 -*-


from __future__ import absolute_import
from __future__ import unicode_literals

import unittest

import dnf

from .common import TestCase


class DnfApiTest(TestCase):
    def test_version(self):
        # dnf.__version__
        self.assertHasAttr(dnf, "__version__")
        self.assertHasType(dnf.__version__, str)

    def test_base(self):
        # dnf.Base
        self.assertHasAttr(dnf, "Base")
        self.assertHasType(dnf.Base, object)

    def test_plugin(self):
        # dnf.Plugin
        self.assertHasAttr(dnf, "Plugin")
        self.assertHasType(dnf.Plugin, object)