Blame src/python-problem/tests/base.py

Packit Service 8a8a03
import unittest
Packit Service 8a8a03
Packit Service 8a8a03
from util import FakeProxy
Packit Service 8a8a03
Packit Service 8a8a03
import problem
Packit Service 8a8a03
Packit Service 8a8a03
class ProblematicTestCase(unittest.TestCase):
Packit Service 8a8a03
    def setUp(self):
Packit Service 8a8a03
        self.proxy = FakeProxy()
Packit Service 8a8a03
        #self.proxy = problem.proxies.get_proxy()
Packit Service 8a8a03
        #self.proxy = problem.proxies.FsProxy('/tmp/abrt/')
Packit Service 8a8a03
Packit Service 8a8a03
    def create_problem(self):
Packit Service 8a8a03
        prob = problem.Runtime(reason='Front fell off')
Packit Service 8a8a03
        prob._proxy = self.proxy
Packit Service 8a8a03
        return prob