Tests the client group's equality operator.
()
| 1025 | |
| 1026 | |
| 1027 | def 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 | |
| 1047 | def test_eq_checks_names(): |
nothing calls this directly
no test coverage detected