File: test.PamCheck.py

package info (click to toggle)
rpmlint 1.9-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 22,212 kB
  • ctags: 722
  • sloc: python: 14,926; makefile: 63; sh: 49
file content (26 lines) | stat: -rw-r--r-- 578 bytes parent folder | download
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
# -*- coding: utf-8 -*-

import unittest

import PamCheck
import Testing
# FIXME harcode


class TestPamCheck(unittest.TestCase):

    def setUp(self):
        self.pkg = Testing.getTestedPackage('binary/PamCheck')
        Testing.startTest()

    def tearDown(self):
        self.pkg.cleanup()

    def testcheck(self):
        PamCheck.check.check(self.pkg)
        self.assertEqual(Testing.getOutput(),
                         ['PamCheck.i586: E: use-old-pam-stack '
                          '/etc/pam.d/PamCheck (line 1)'])

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