Beispiel #1
0
    def test_ne__should_return_comparing_result(self, number, group):
        sdk = Mock()
        obj = Relay(sdk, RelayGroup.lock, 2)
        other_obj = Relay(sdk, group, number)
        expect = not (obj.number == other_obj.number
                      and obj.group == other_obj.group)

        assert obj.__ne__(other_obj) == expect
Beispiel #2
0
    def test_ne__if_other_object_type__should_return_true(self, val):
        sdk = Mock()
        obj = Relay(sdk, RelayGroup.lock, 2)

        assert obj.__ne__(val) is True