def test_address_fail(self): with self.assertRaises(RuntimeError): get_public_key_from_address("17uUag1hS4GX7KQync4Jt3ufNS9926Axpk")
def test_address(self): pub_string = get_public_key_from_address(self.address) self.assertEquals(pub_string, self.pub_string)