Ejemplo n.º 1
0
def ut_bad_dir_of_nodes_all_time():

    dir_of_nodes_path = PATH_TO_LOGS + 'bad_node_dirs/'
    node_dict = analyzer.analyze_dirs(dir_of_nodes_path)

    answer = _open_answer(PATH_TO_LOGS + 'bad_multi_logs_answer.pik')
    #  answer = _save_answer(PATH_TO_LOGS + 'bad_multi_logs_answer.pik', node_dict)

    if node_dict != answer:
        print "The test for multiple nodes with multiple log files has failed!"
def ut_bad_dir_of_nodes_all_time():
  
  dir_of_nodes_path = PATH_TO_LOGS + 'bad_node_dirs/'
  node_dict = analyzer.analyze_dirs(dir_of_nodes_path)

  answer = _open_answer(PATH_TO_LOGS + 'bad_multi_logs_answer.pik')
#  answer = _save_answer(PATH_TO_LOGS + 'bad_multi_logs_answer.pik', node_dict)
  
  if node_dict != answer:
    print "The test for multiple nodes with multiple log files has failed!"
Ejemplo n.º 3
0
def ut_bad_dir_of_nodes_custom_time():
    single_log_path = PATH_TO_LOGS + 'bad_node_dirs/'
    timestamp = 1279930157.4
    node_dict = analyzer.analyze_dirs(single_log_path, False, timestamp)

    # Open and load the answer for this unit test.
    answer_path = PATH_TO_LOGS + 'bad_multi_logs_answer_custom_time.pik'
    answer = _open_answer(answer_path)
    #  answer = _save_answer(answer_path, node_dict)

    if node_dict != answer:
        print "The test for a multiple nodes with multuple log files using a",
        print "custom timestamp", timestamp, "has failed!"
def ut_bad_dir_of_nodes_custom_time():
  single_log_path = PATH_TO_LOGS + 'bad_node_dirs/'
  timestamp = 1279930157.4
  node_dict = analyzer.analyze_dirs(single_log_path, False, timestamp)

  # Open and load the answer for this unit test.
  answer_path = PATH_TO_LOGS + 'bad_multi_logs_answer_custom_time.pik'
  answer = _open_answer(answer_path)
#  answer = _save_answer(answer_path, node_dict)

  if node_dict != answer:
    print "The test for a multiple nodes with multuple log files using a",
    print "custom timestamp", timestamp, "has failed!"