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

Function test_client_group_attribute_access

tests/test_ProblemData.py:813–823  ·  view source on GitHub ↗

Tests that the ClientGroup's attributes are correctly set and accessible.

()

Source from the content-addressed store, hash-verified

811
812
813def test_client_group_attribute_access():
814 """
815 Tests that the ClientGroup's attributes are correctly set and accessible.
816 """
817 group = ClientGroup(clients=[1, 2, 3], required=False, name="test")
818
819 assert_equal(group.clients, [1, 2, 3])
820 assert_equal(group.required, False)
821 assert_equal(group.mutually_exclusive, True)
822 assert_equal(group.name, "test")
823 assert_equal(str(group), "test")
824
825
826def test_raises_empty_group():

Callers

nothing calls this directly

Calls 1

ClientGroupClass · 0.90

Tested by

no test coverage detected