Example #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)
Example #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)
Example #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")
Example #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")
Example #5
0
 def test_empty(self):
     files = store.list_log_files(self.log_path)
     assert_equal(len(files), 0)
Example #6
0
 def test_empty(self):
     files = store.list_log_files(self.log_path)
     assert_equal(len(files), 0)