Пример #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()
Пример #2
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.init_database()

        self.factory = RequestFactory()

        test_utils.stop_bitcoin_core_apps()
Пример #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()
Пример #5
0
    def setUp(self):
        ''' Set up for a test. '''

        test_utils.setup_tmp_dir()