def test_is_not_a_file(self):

        self.client.set('/directory/test-key', 'test-value')
        self.assertRaises(etcd.EtcdNotFile, self.client.set, '/directory', 'test-value')
INTEGRATION: try to write  value to an existing directory
dataset/ETHPy150Open jplana/python-etcd/src/etcd/tests/integration/test_simple.py/TestErrors.test_is_not_a_file