def test_MisspelledSeedWord(self): print("Testing to see if bad checksum fails ... ") for test in self.vectorMisspelledSeedWord: self.assertFalse(isValidMnemonic(test))
def test_Invalid_2ExtraWords(self): print("Testing to see if adding two extra words fails ... ") for test in self.vectorInvalid_2ExtraWords: self.assertFalse(isValidMnemonic(test))
def test_BadChecksum(self): print("Testing to see if bad checksum fails ... ") for test in self.vectorBadChecksum: self.assertFalse(isValidMnemonic(test))
def test_Valid(self): print("Testing to see if valid seed words work ... ") sys.stderr = self.original_stdout #For items that are supposed to succeed, we want to see the error messages. for test in self.vectorValid: self.assertTrue(isValidMnemonic(test))