test: move-only: Move all generate* tests to a single file

Can be reviewed with
--color-moved=dimmed-zebra
This commit is contained in:
MarcoFalke
2022-03-25 12:01:36 +01:00
parent c9b5790e8d
commit 0000ff0d6b
4 changed files with 91 additions and 107 deletions

View File

@ -26,10 +26,6 @@ class DisableWalletTest (BitcoinTestFramework):
x = self.nodes[0].validateaddress('mneYUmWYsuk7kySiURxCi3AGxrAqZxLgPZ')
assert x['isvalid'] == True
# Checking mining to an address without a wallet. Generating to a valid address should succeed
# but generating to an invalid address will fail.
self.generatetoaddress(self.nodes[0], 1, 'mneYUmWYsuk7kySiURxCi3AGxrAqZxLgPZ')
assert_raises_rpc_error(-5, "Invalid address", self.generatetoaddress, self.nodes[0], 1, '3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy')
if __name__ == '__main__':
DisableWalletTest ().main ()
DisableWalletTest().main()