Tests that adding the same client to a group more than once raises.
()
| 936 | |
| 937 | |
| 938 | def test_client_group_raises_duplicate_clients(): |
| 939 | """ |
| 940 | Tests that adding the same client to a group more than once raises. |
| 941 | """ |
| 942 | with assert_raises(ValueError): |
| 943 | ClientGroup([1, 1]) |
| 944 | |
| 945 | group = ClientGroup() |
| 946 | group.add_client(1) # this should be OK |
| 947 | |
| 948 | with assert_raises(ValueError): |
| 949 | group.add_client(1) # but adding the client a second time is not |
| 950 | |
| 951 | |
| 952 | def test_replacing_client_groups(ok_small): |
nothing calls this directly
no test coverage detected