#NEWLINE# @ qc ( 10 ) #NEWLINE# def physical_cpu_mhz( x = int_ ( min = 0 , max = 8 ) ) : #NEWLINE# #INDENT# with MockTransaction : #NEWLINE# #INDENT# connection = libvirt . virConnect ( ) #NEWLINE# expect ( connection ) . getInfo ( ) . and_return ( [ 0 , 0 , 0 , x ] ) . once ( ) #NEWLINE# assert ( common . physical_cpu_mhz ( connection ) == x )