aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test-shell.md
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/test-shell.md')
-rw-r--r--test/functional/test-shell.md8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/functional/test-shell.md b/test/functional/test-shell.md
index aefcdc5ec8..f6ea9ef682 100644
--- a/test/functional/test-shell.md
+++ b/test/functional/test-shell.md
@@ -31,7 +31,7 @@ importing the `TestShell` class from the `test_shell` sub-package.
```
>>> import sys
>>> sys.path.insert(0, "/path/to/bitcoin/test/functional")
->>> from test_framework.test_shell import `TestShell`
+>>> from test_framework.test_shell import TestShell
```
The following `TestShell` methods manage the lifetime of the underlying bitcoind
@@ -51,8 +51,7 @@ The following sections demonstrate how to initialize, run, and shut down a
## 3. Initializing a `TestShell` object
```
->>> test = TestShell()
->>> test.setup(num_nodes=2, setup_clean_chain=True)
+>>> test = TestShell().setup(num_nodes=2, setup_clean_chain=True)
20XX-XX-XXTXX:XX:XX.XXXXXXX TestFramework (INFO): Initializing test directory /path/to/bitcoin_func_test_XXXXXXX
```
The `TestShell` forwards all functional test parameters of the parent
@@ -66,8 +65,7 @@ temporary folder. If you need more bitcoind nodes than set by default (1),
simply increase the `num_nodes` parameter during setup.
```
->>> test2 = TestShell()
->>> test2.setup()
+>>> test2 = TestShell().setup()
TestShell is already running!
```