def test_VNS_not__eq__():
    "Inequality of two VisualisableNetworkStructures."
    u1, u2 = Unit(1, 1, 2), Unit(2, 3, 2)
    V.add_population(iter(Tns.vns_units))
    V.connect_units(Tns.vns_units[0], Tns.vns_units[1], -1)
    V.connect_units(Tns.vns_units[1], Tns.vns_units[0], 0.3)
    V.add_unit(u1, "bar")
    V.add_unit(u2, "foo")
    V.connect_maps("bar", "foo")
    w = VNS()
    w.add_unit(u2, "foo")
    w.add_population(iter(Tns.vns_units))
    w.add_unit(u1, "bar")
    w.connect_units(Tns.vns_units[0], Tns.vns_units[1], 1)  # changed
    w.connect_units(Tns.vns_units[1], Tns.vns_units[0], 0.3)
    w.connect_maps("bar", "foo") 
    x = VNS()
    x.add_unit(u2, "foo")
    x.add_population(iter(Tns.vns_units))
    x.add_unit(u1, "lol") # changed
    x.connect_units(Tns.vns_units[0], Tns.vns_units[1], -1)
    x.connect_units(Tns.vns_units[1], Tns.vns_units[0], 0.3)
    x.connect_maps("bar", "foo")
    y = VNS()
    y.add_unit(u2, "foo")
    y.add_population(iter(Tns.vns_units))
    y.add_unit(u1, "bar")
    # y.connect_units(Tns.vns_units[0], Tns.vns_units[1], -1) changed
    y.connect_units(Tns.vns_units[1], Tns.vns_units[0], 0.3)
    y.connect_maps("bar", "foo")
    z = VNS()
    z.add_unit(u2, "foo")
    z.add_population(iter(Tns.vns_units))
    z.add_unit(u1, "bar")
    z.connect_units(Tns.vns_units[0], Tns.vns_units[1], -1)
    z.connect_units(Tns.vns_units[1], Tns.vns_units[0], 0.3)
    z.connect_maps("bar", "faz")  # changed
    assert V != w
    assert V != x
    assert V != y
    assert V != z
def test_VNS_not__eq__():
    "Inequality of two VisualisableNetworkStructures."
    u1, u2 = Unit(1, 1, 2), Unit(2, 3, 2)
    V.add_population(iter(Tns.vns_units))
    V.connect_units(Tns.vns_units[0], Tns.vns_units[1], -1)
    V.connect_units(Tns.vns_units[1], Tns.vns_units[0], 0.3)
    V.add_unit(u1, "bar")
    V.add_unit(u2, "foo")
    V.connect_maps("bar", "foo")
    w = VNS()
    w.add_unit(u2, "foo")
    w.add_population(iter(Tns.vns_units))
    w.add_unit(u1, "bar")
    w.connect_units(Tns.vns_units[0], Tns.vns_units[1], 1)  # changed
    w.connect_units(Tns.vns_units[1], Tns.vns_units[0], 0.3)
    w.connect_maps("bar", "foo")
    x = VNS()
    x.add_unit(u2, "foo")
    x.add_population(iter(Tns.vns_units))
    x.add_unit(u1, "lol")  # changed
    x.connect_units(Tns.vns_units[0], Tns.vns_units[1], -1)
    x.connect_units(Tns.vns_units[1], Tns.vns_units[0], 0.3)
    x.connect_maps("bar", "foo")
    y = VNS()
    y.add_unit(u2, "foo")
    y.add_population(iter(Tns.vns_units))
    y.add_unit(u1, "bar")
    # y.connect_units(Tns.vns_units[0], Tns.vns_units[1], -1) changed
    y.connect_units(Tns.vns_units[1], Tns.vns_units[0], 0.3)
    y.connect_maps("bar", "foo")
    z = VNS()
    z.add_unit(u2, "foo")
    z.add_population(iter(Tns.vns_units))
    z.add_unit(u1, "bar")
    z.connect_units(Tns.vns_units[0], Tns.vns_units[1], -1)
    z.connect_units(Tns.vns_units[1], Tns.vns_units[0], 0.3)
    z.connect_maps("bar", "faz")  # changed
    assert V != w
    assert V != x
    assert V != y
    assert V != z
def test_VNS___eq__():
    "Equality of two VisualisableNetworkStructures."
    u1, u2 = Unit(1, 1, 2), Unit(2, 3, 2)
    V.add_population(iter(Tns.vns_units))
    V.connect_units(Tns.vns_units[0], Tns.vns_units[1], -1)
    V.connect_units(Tns.vns_units[1], Tns.vns_units[0], 0.3)
    V.add_unit(u1, "bar")
    V.add_unit(u2, "foo")
    V.connect_maps("bar", "foo")
    w = VNS()
    w.add_unit(u2, "foo")
    w.add_population(iter(Tns.vns_units))
    w.add_unit(u1, "bar")
    w.connect_units(Tns.vns_units[0], Tns.vns_units[1], -1)
    w.connect_units(Tns.vns_units[1], Tns.vns_units[0], 0.3)
    w.connect_maps("bar", "foo")
    assert V == w
def test_VNS___eq__():
    "Equality of two VisualisableNetworkStructures."
    u1, u2 = Unit(1, 1, 2), Unit(2, 3, 2)
    V.add_population(iter(Tns.vns_units))
    V.connect_units(Tns.vns_units[0], Tns.vns_units[1], -1)
    V.connect_units(Tns.vns_units[1], Tns.vns_units[0], 0.3)
    V.add_unit(u1, "bar")
    V.add_unit(u2, "foo")
    V.connect_maps("bar", "foo")
    w = VNS()
    w.add_unit(u2, "foo")
    w.add_population(iter(Tns.vns_units))
    w.add_unit(u1, "bar")
    w.connect_units(Tns.vns_units[0], Tns.vns_units[1], -1)
    w.connect_units(Tns.vns_units[1], Tns.vns_units[0], 0.3)
    w.connect_maps("bar", "foo")
    assert V == w