Пример #1
0
    def testAbrtConfigure(self):
        _setConfig(
            self,
            ('ABRT_CONF', 'empty'),
            ('CCPP_CONF', 'empty'),
            ('VMCORE_CONF', 'empty'),
            ('PKG_CONF', 'empty'),
        )

        self.assertEqual(abrt.isconfigured(), NO)

        abrt.configure()

        self.assertEqual(abrt.isconfigured(), MAYBE)
Пример #2
0
 def testIsConfiguredNegative(self):
     _setConfig(
         self,
         ('ABRT_CONF', 'abrt'),
         ('CCPP_CONF', 'CCPP'),
         ('VMCORE_CONF', 'empty'),
         ('PKG_CONF', 'abrt-action-save-package-data'),
     )
     self.assertEqual(abrt.isconfigured(), NO)
Пример #3
0
    def testAbrtConfigure(self):
        _setConfig(self,
                   ('ABRT_CONF', 'empty'),
                   ('CCPP_CONF', 'empty'),
                   ('VMCORE_CONF', 'empty'),
                   ('PKG_CONF', 'empty'),
                   )

        self.assertEqual(
            abrt.isconfigured(),
            NO
        )

        abrt.configure()

        self.assertEqual(
            abrt.isconfigured(),
            MAYBE
        )
Пример #4
0
 def testIsConfiguredNegative(self):
     _setConfig(self,
                ('ABRT_CONF', 'abrt'),
                ('CCPP_CONF', 'CCPP'),
                ('VMCORE_CONF', 'empty'),
                ('PKG_CONF', 'abrt-action-save-package-data'),
                )
     self.assertEqual(
         abrt.isconfigured(),
         NO
     )