# Path: bitcoinpy/lib/utils.py
# def myhash(s):
# def myhash160(s):
# def getnewaddress():
# def public_key_to_address(public_key):
# def public_key_hex_to_address(public_key_hex):
# def address_to_public_key_hash(address):
# def public_key_hex_to_pay_to_script_hash(public_key_hex):
# def public_key_hex_to_pay_to_pubkey(public_key_hex):
# def public_key_to_pay_to_pubkey(public_key):
# def address_to_pay_to_pubkey_hash(address):
# def sriptSig_to_pubkey(script):
# def output_script_to_public_key_hash(script):
# def scriptSig_to_public_key_hash(script):
# def mk_pubkey_script(addr): # Keep the auxiliary functions around for altcoins' sake
# def mk_scripthash_script(addr):
# def address_to_script(addr):
# def address_to_output_script(address):
# def calculate_fees(tx):


import unittest
from bitcoinpy.lib import utils


class TestUtils(unittest.TestCase):
    def setUp(self):
        pass

    def test_public_key_to_address(self):
        public_key, private_key, address = utils.getnewaddress()

# Path: bitcoinpy/lib/utils.py
# def myhash(s):
# def myhash160(s):
# def getnewaddress():
# def public_key_to_address(public_key):
# def public_key_hex_to_address(public_key_hex):
# def address_to_public_key_hash(address):
# def public_key_hex_to_pay_to_script_hash(public_key_hex):
# def public_key_hex_to_pay_to_pubkey(public_key_hex):
# def public_key_to_pay_to_pubkey(public_key):
# def address_to_pay_to_pubkey_hash(address):
# def sriptSig_to_pubkey(script):
# def output_script_to_public_key_hash(script):
# def scriptSig_to_public_key_hash(script):
# def mk_pubkey_script(addr): # Keep the auxiliary functions around for altcoins' sake
# def mk_scripthash_script(addr):
# def address_to_script(addr):
# def address_to_output_script(address):
# def calculate_fees(tx):


# Path: tests/unit/test_utils.py
import unittest
from bitcoinpy.lib import utils



class TestUtils(unittest.TestCase):
    def setUp(self):
        pass

    def test_public_key_to_address(self):
        public_key, private_key, address = utils.getnewaddress()

        myaddress = utils.public_key_to_address(public_key)