def _ensure_no_filesystem(device, block_device_manager):
 if block_device_manager.has_filesystem(device):
  raise FilesystemExists(device)

def _ensure_no_filesystem ( device , block_device_manager ) : if block_device_manager . has_filesystem ( device ) : raise FilesystemExists ( device )
raises an error if theres already a filesystem on device .