def test_pbtxt_is_dataset_file(self) -> None: """Test if record is a valid dataset file.""" path = "/home/user/dataset.pbtxt" result = is_dataset_file(path) self.assertFalse(result)
def is_dataset_or_directory_entry(entry: Dict) -> bool: """Return if given entry should be shown on dataset list.""" return is_dataset_file(entry["name"]) or is_directory_entry(entry)
def test_record_is_dataset_file(self) -> None: """Test if record is a valid dataset file.""" path = "/home/user/dataset.record" result = is_dataset_file(path) self.assertTrue(result)