1bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch# Copyright 2013 The Chromium Authors. All rights reserved. 2bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch# Use of this source code is governed by a BSD-style license that can be 3bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch# found in the LICENSE file. 4bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch 5bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochfrom file_system import FileSystem 6bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch 7bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochclass FailOnAccessFileSystem(FileSystem): 8bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch # All this needs to do is implement GetIdentity. All other methods will 9bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch # automatically fail with NotImplementedErrors. 10bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch def GetIdentity(self): 11bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch return '42' 12