コード例 #1
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
class BaseJondisTest(unittest.TestCase):
    def setUp(self):
        self.manager = Manager()
        self.start()

    def start(self):
        """
        We always need to run the base setup, so we might as well just call start() instead
        of using super() on every single test.  Slightly less obnoxious
        """
        raise NotImplementedError("You must use the start() method to start redis servers.")

    def tearDown(self):
        self.manager.shutdown()
コード例 #2
0
ファイル: base.py プロジェクト: rjpatawaran/jondis
class BaseJondisTest(unittest.TestCase):
    def setUp(self):
        self.manager = Manager()
        self.start()

    def start(self):
        """
        We always need to run the base setup, so we might as well just call start() instead
        of using super() on every single test.  Slightly less obnoxious
        """
        raise NotImplementedError(
            "You must use the start() method to start redis servers.")

    def tearDown(self):
        self.manager.shutdown()
コード例 #3
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def setUp(self):
     self.manager = Manager()
     self.start()
コード例 #4
0
ファイル: base.py プロジェクト: ht-dep/jondis
 def setUp(self):
     self.manager = Manager()
     self.start()