def _path_for_test_id(test_id, max_segment_length=32):
 if (test_id.count('.') < 2):
  raise ValueError(('Must have at least three components (e.g. foo.bar.baz), got: %r' % (test_id,)))
 return '/'.join((segment[:max_segment_length] for segment in test_id.rsplit('.', 2)))

def _path_for_test_id ( test_id , max_segment_length = 32 ) : if ( test_id . count ( '.' ) < 2 ) : raise ValueError ( ( 'Must have at least three components (e.g. foo.bar.baz), got: %r' % ( test_id , ) ) ) return '/' . join ( ( segment [ : max_segment_length ] for segment in test_id . rsplit ( '.' , 2 ) ) )
get the temporary directory path for a test id .