33import urllib .request
44from pathlib import Path
55
6-
76import openmc
87import openmc_dagmc_wrapper as odw
98
109
1110class TestMeshTallies (unittest .TestCase ):
11+ """Tests the MeshTallies class functionality"""
12+
1213 def setUp (self ):
1314
1415 if not Path ("tests/v0.0.2.tar.gz" ).is_file ():
@@ -26,15 +27,15 @@ def test_incorrect_mesh_tally_2d(self):
2627 """Set a mesh_tally_2d that is not accepted which should raise an
2728 error"""
2829 def incorrect_mesh_tally_2d ():
29- my_tally = odw .MeshTally2D ("coucou" , plane = "xy" )
30+ odw .MeshTally2D ("coucou" , plane = "xy" )
3031
3132 self .assertRaises (ValueError , incorrect_mesh_tally_2d )
3233
3334 def test_incorrect_mesh_tally_2d_type (self ):
3435 """Set a mesh_tally_2d that is the wrong type which should raise an
3536 error"""
3637 def incorrect_mesh_tally_2d_type ():
37- my_tally = odw .MeshTally2D (1 , plane = "xy" )
38+ odw .MeshTally2D (1 , plane = "xy" )
3839
3940 self .assertRaises (TypeError , incorrect_mesh_tally_2d_type )
4041
@@ -43,7 +44,7 @@ def test_incorrect_mesh_tally_3d(self):
4344 error"""
4445
4546 def incorrect_mesh_tally_3d ():
46- my_tally = odw .MeshTally3D ("coucou" )
47+ odw .MeshTally3D ("coucou" )
4748
4849 self .assertRaises (ValueError , incorrect_mesh_tally_3d )
4950
@@ -52,7 +53,7 @@ def test_incorrect_mesh_tally_3d_type(self):
5253 error"""
5354
5455 def incorrect_mesh_tally_3d_type ():
55- my_tally = odw .MeshTally3D (1 )
56+ odw .MeshTally3D (1 )
5657
5758 self .assertRaises (TypeError , incorrect_mesh_tally_3d_type )
5859
0 commit comments