示例#1
0
 def test_process_run(self):
     processes = runner.processes()
     assert isinstance(processes, dict)
     for process in processes:
         process_dict = processes[process]
         
         assert 'time' in process_dict
         assert 'memory' in process_dict
         assert 'cpu' in process_dict
示例#2
0
    def test_processes(self):
        process_info = runner.processes()
        process_checks = settings.PROCESS_CHECKS

        for process in process_checks:
            db = backend.get_collection(process)
            db.remove()

        backend.store_entries(process_info)

        for process in process_checks:
            db = backend.get_collection(process)
            eq_(1, db.count())
示例#3
0
    def test_processes(self):
        process_info = runner.processes()
        process_checks = settings.PROCESS_CHECKS
        
        
        for process in process_checks:
            db = backend.get_collection(process)
            db.remove()
        
        backend.store_entries(process_info)

        for process in process_checks:
            db = backend.get_collection(process)
            eq_(1, db.count())