def test_getnewaddress_returns_different_addresses(self): num_addresses = random.randint(10, 100) addresses = set() proxy = FakeRavencoinProxy() for each in range(num_addresses): address = proxy.getnewaddress() addresses.add(str(address)) self.assertEqual(len(addresses), num_addresses)
def test_getnewaddress_returns_cravencoinaddress(self): proxy = FakeRavencoinProxy() address = proxy.getnewaddress() self.assertEqual(type(address), P2PKHRavencoinAddress)