def METHOD_NAME(self, addr, spk):
    info = self.nodes[0].validateaddress(addr)
    assert_equal(info["isvalid"], True)
    assert_equal(info["scriptPubKey"], spk)
    assert "error" not in info
    assert "error_locations" not in info