MCPcopy Index your code
hub / github.com/PyVRP/PyVRP / test_client_group_eq

Function test_client_group_eq

tests/test_ProblemData.py:1027–1044  ·  view source on GitHub ↗

Tests the client group's equality operator.

()

Source from the content-addressed store, hash-verified

1025
1026
1027def test_client_group_eq():
1028 """
1029 Tests the client group's equality operator.
1030 """
1031 group1 = ClientGroup(clients=[1, 2], required=False)
1032 group2 = ClientGroup(clients=[1, 2], required=True)
1033 assert_(group1 != group2)
1034
1035 # This group is equivalent to group1.
1036 group3 = ClientGroup(clients=[1, 2], required=False)
1037 assert_(group1 == group3)
1038
1039 # And some things that are not client groups.
1040 assert_(group1 != "text")
1041 assert_(group1 != 7)
1042
1043 group4 = ClientGroup(clients=[1, 2], required=False, name="test")
1044 assert_(group1 != group4)
1045
1046
1047def test_eq_checks_names():

Callers

nothing calls this directly

Calls 1

ClientGroupClass · 0.90

Tested by

no test coverage detected