summaryrefslogtreecommitdiff
path: root/contrib/python/pypodman/test/test_report.py
blob: 280a9a9541240d0edcb449daca5664ffab4e1887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from __future__ import absolute_import

import unittest

from report import Report, ReportColumn


class TestReport(unittest.TestCase):
    def setUp(self):
        pass

    def test_report_column(self):
        rc = ReportColumn('k', 'v', 3)
        self.assertEqual(rc.key, 'k')
        self.assertEqual(rc.display, 'v')
        self.assertEqual(rc.width, 3)
        self.assertIsNone(rc.default)

        rc = ReportColumn('k', 'v', 3, 'd')
        self.assertEqual(rc.key, 'k')
        self.assertEqual(rc.display, 'v')
        self.assertEqual(rc.width, 3)
        self.assertEqual(rc.default, 'd')