Tests that the equality operators on named objects also considers the name when determining equality.
()
| 1045 | |
| 1046 | |
| 1047 | def test_eq_checks_names(): |
| 1048 | """ |
| 1049 | Tests that the equality operators on named objects also considers the name |
| 1050 | when determining equality. |
| 1051 | """ |
| 1052 | x, y = 0, 0 |
| 1053 | assert_(Client(x, y, name="1") != Client(x, y, name="2")) |
| 1054 | assert_(Depot(x, y, name="1") != Depot(x, y, name="2")) |
| 1055 | assert_(VehicleType(name="1") != VehicleType(name="2")) |
| 1056 | assert_(ClientGroup(name="1") != ClientGroup(name="2")) |
| 1057 | |
| 1058 | |
| 1059 | @pytest.mark.parametrize("cls", (Client, Depot)) |
nothing calls this directly
no test coverage detected