def test_errors(self):
    with self.assertRaises(ValueError):
        HDPrivateKey.from_mnemonic('hello')
    with self.assertRaises(ValueError):
        mnemonic = 'abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon'
        HDPrivateKey.from_mnemonic(mnemonic)
def test_errors(self):
    with self.assertRaises(ValueError):
        HDPrivateKey.from_mnemonic('hello')
    with self.assertRaises(ValueError):
        mnemonic = 'abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon'
        HDPrivateKey.from_mnemonic(mnemonic)