Jpp 21.0.0
the software that should make you happy
Loading...
Searching...
No Matches
test_core.TestDataPath Class Reference
Inheritance diagram for test_core.TestDataPath:

Public Member Functions

 test_access (self)
 
 test_accessing_nonexistent_files (self)
 
 test_filename_returned_if_raise_missing_is_false (self)
 

Detailed Description

Definition at line 9 of file test_core.py.

Member Function Documentation

◆ test_access()

test_core.TestDataPath.test_access ( self)

Definition at line 10 of file test_core.py.

10 def test_access(self):
11 assert data_path("online/km3net_online.root").endswith("km3net_online.root")
12

◆ test_accessing_nonexistent_files()

test_core.TestDataPath.test_accessing_nonexistent_files ( self)

Definition at line 13 of file test_core.py.

13 def test_accessing_nonexistent_files(self):
14 with self.assertRaises(RuntimeError):
15 data_path("nonexistent_file")
16

◆ test_filename_returned_if_raise_missing_is_false()

test_core.TestDataPath.test_filename_returned_if_raise_missing_is_false ( self)

Definition at line 17 of file test_core.py.

17 def test_filename_returned_if_raise_missing_is_false(self):
18 filename = "nonexistent_file"
19 assert data_path(filename, raise_missing=False).endswith(filename)
20
21

The documentation for this class was generated from the following file: