File: test.PamCheck.py

package info (click to toggle)
rpmlint 1.6-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,424 kB
  • ctags: 696
  • sloc: python: 14,920; makefile: 70; sh: 23
file content (25 lines) | stat: -rw-r--r-- 577 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
# -*- coding: utf-8 -*-

import unittest
import Testing
import PamCheck
# 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()