Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

14 wiersze
382B

  1. from modules.logs import LogView
  2. from tests.testlib import utils
  3. class TestLogView(object):
  4. def test_get_all_logfiles(self):
  5. LogView._log_directory = utils.get_base_path() + "/logs"
  6. logfiles = LogView().get_all_logfiles()
  7. # if no log file is found then two square brackets "[]" are returned and string length is 2
  8. assert (len(logfiles) > 2)