def METHOD_NAME(self):
    filename = abspath(join(testdir, "plot_leaflet_network1.html"))
    if isfile(filename):
        os.remove(filename)
    inp_file = join(ex_datadir, "Net3.inp")
    wn = wntr.network.WaterNetworkModel(inp_file)
    sim = wntr.sim.EpanetSimulator(wn)
    results = sim.run_sim()
    pressure = results.node["pressure"]
    flowrate = results.link["flowrate"]
    anim = wntr.graphics.network_animation(
        wn, node_attribute=pressure, link_attribute=flowrate, repeat=True
    )
    from matplotlib.animation import FuncAnimation
    self.assertTrue(isinstance(anim, FuncAnimation))