Test Material

class padvinder.test.test_material.TestMaterial(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_default_construction()[source]

Test if the material is constructed with the expected default parameters.

test_non_default_construction()[source]

Test if the material is constructed correctly with non-default parameters.

test_outgoing_direction() → None[source]
test_representation()[source]

Test if the string representation of the material is correct. Because testing against a concrete string is tough if numpy changes how they print arrays, we will just test if the call succedes.

class padvinder.test.test_material.TestEmission(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_default_construction()[source]

Test if the material is constructed with the expected default parameters.

test_non_default_construction()[source]

Test if the material is constructed correctly with non-default parameters.

test_representation()[source]

Test if the string representation of the emission is correct. Because testing against a concrete string is tough if numpy changes how they print arrays, we will just test if the call succedes.

class padvinder.test.test_material.TestLambert(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_default_construction()[source]

Test if the material is constructed with the expected default parameters.

test_non_default_construction()[source]

Test if the material is constructed correctly with non-default parameters.

test_representation()[source]

Test if the string representation of the material is correct. Because testing against a concrete string is tough if numpy changes how they print arrays, we will just test if the call succedes.