def test_in(self):
        """ Can check if key is in client """
        client = etcd.Client()
        client.api_execute = mock.Mock(
            return_value=FakeHTTPResponse(200,
                                          '{"action":"GET",'
                                          '"node": {'
                                          '"key":"/testkey",'
                                          '"value":"test",'
                                          '"modifiedIndex":190}}')
        )
        result = client in '/testkey'

        self.assertEquals(True, result)
dataset/ETHPy150Open jplana/python-etcd/src/etcd/tests/unit/test_old_request.py/TestClientRequest.test_in/swapped operands of `in`