How to confirm that given bitcoin address is generated by given public key?
There is a step-by-step guide here and you can also test it on this site. 

You can also use this python library.

import os
os.environ['CRYPTOTOOLS_NETWORK'] = 'test'

from btctools import PublicKey

&gt;&gt;&gt; pub = Publickey.from_hex('yourpubkeyhere')
&gt;&gt;&gt; pub.to_address('P2PKH')
'mp9CpH3h25m7FZqsPBf2UfU9Gm4u41j9Eg'