def test_getnewaddress_returns_different_addresses(self):
        num_addresses = random.randint(10, 100)
        addresses = set()

        proxy = FakeBitcoinProxy()

        for each in range(num_addresses):
            address = proxy.getnewaddress()
            addresses.add(str(address))

        self.assertEqual(len(addresses), num_addresses)
 def test_getnewaddress_returns_cbitcoinaddress(self):
     proxy = FakeBitcoinProxy()
     address = proxy.getnewaddress()
     self.assertEqual(type(address), P2PKHBitcoinAddress)