#NEWLINE# @ qc ( 10 ) #NEWLINE# def append_host_data_remotely( hostname = str_ ( of = 'abc123' , min_length = 5 , max_length = 10 ) , cpu_mhz = int_ ( min = 0 , max = 3000 ) ) : #NEWLINE# #INDENT# db = db_utils . init_db ( 'sqlite:///:memory:' ) #NEWLINE# db . update_host ( hostname , 1 , 1 , 1 ) #NEWLINE# collector . append_host_data_remotely ( db , hostname , cpu_mhz ) #NEWLINE# assert ( db . select_cpu_mhz_for_host ( hostname , 1 ) == [ hostname ] )