Esempio n. 1
0
    def setUp(self):
        ''' Set up for a test. '''

        test_utils.setup_tmp_dir()

        self.home_bitcoin_subdir_exists = test_utils.home_bitcoin_dir_exists()

        test_utils.stop_bitcoin_core_apps()
    def setUp(self):
        ''' Set up for a test. '''

        test_utils.setup_tmp_dir()

        self.home_bitcoin_subdir_exists = test_utils.home_bitcoin_dir_exists()
        test_utils.init_database()

        self.factory = RequestFactory()

        test_utils.stop_bitcoin_core_apps()
Esempio n. 3
0
    def setUp(self):
        ''' Set up for a test. '''

        test_utils.setup_tmp_dir()

        self.home_bitcoin_subdir_exists = test_utils.home_bitcoin_dir_exists()
        # Every test needs access to the request for the home page.
        factory = RequestFactory()
        self.request = factory.get('/')

        test_utils.stop_bitcoin_core_apps()
    def setUp(self):
        ''' Set up for a test. '''

        test_utils.setup_tmp_dir()

        self.home_bitcoin_subdir_exists = test_utils.home_bitcoin_dir_exists()

        # Every test needs access to the request factory or client.
        self.factory = RequestFactory()
        self.client = Client()

        test_utils.stop_bitcoin_core_apps()