Esempio n. 1
0
    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)
Esempio n. 2
0
    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)
Esempio n. 3
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")
Esempio n. 4
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")
Esempio n. 5
0
 def test_empty(self):
     files = store.list_log_files(self.log_path)
     assert_equal(len(files), 0)
Esempio n. 6
0
 def test_empty(self):
     files = store.list_log_files(self.log_path)
     assert_equal(len(files), 0)