def test_garbage(self): file_name = os.path.join(self.log_path, "foo.dat") with open(file_name, "w") as f: f.write("hi") files = store.list_log_files(self.log_path) assert_equal(len(files), 0)
def test_simple(self): file_name = os.path.join(self.log_path, "foo-20150521.log") with open(file_name, "w") as f: f.write("hi") files = store.list_log_files(self.log_path) assert_equal(len(files), 1) assert_equal(files[0].type_name, "foo")
def test_empty(self): files = store.list_log_files(self.log_path) assert_equal(len(files), 0)