unit Package

line_parsing Module

pyNastran.bdf.test.unit.line_parsing._parseEntry(lines)[source]
pyNastran.bdf.test.unit.line_parsing.parseSetSline(listA)[source]
pyNastran.bdf.test.unit.line_parsing.parseSetType(i, line, lines, key, value)[source]

test_assign_type Module

Inheritance diagram of pyNastran.bdf.test.unit.test_assign_type

class pyNastran.bdf.test.unit.test_assign_type.ExtendedTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

assertRaisesWithMessage(msg, func, *args, **kwargs)[source]
class pyNastran.bdf.test.unit.test_assign_type.Test(methodName='runTest')[source]

Bases: pyNastran.bdf.test.unit.test_assign_type.ExtendedTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

check_double(method)[source]
check_integer(method)[source]
run_function(f, card, exact)[source]
run_function_default(f, card, exact, default)[source]
test_bad()[source]
test_blank(card, n, fieldname)[source]
test_components()[source]
test_components_or_blank_01()[source]
test_components_or_blank_02()[source]
test_double(card, n, fieldname)[source]
test_double_or_blank(card, n, fieldname, default=None)[source]
test_double_or_string()[source]
test_double_string_or_blank()[source]
test_integer(card, n, fieldname)[source]
test_integer_double_or_blank(card, n, fieldname, default=None)[source]
test_integer_double_or_string()[source]
test_integer_or_blank(card, n, fieldname)[source]
test_integer_or_double()[source]
test_integer_or_string()[source]
test_integer_string_or_blank()[source]
test_string(card, n, fieldname)[source]

test_mass Module

Inheritance diagram of pyNastran.bdf.test.unit.test_mass

class pyNastran.bdf.test.unit.test_mass.TestMass(methodName='runTest')[source]

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

test_mass_shell_1()[source]
test_mass_solid_1()[source]
verify_pcomp_element(element, mass, area, centroid, normal)[source]
verify_pshell_element(element, mass, area, centroid, normal, nsm)[source]
verify_psolid_element(element, mass, volume, centroid, rho, E=None, G=None, nu=None)[source]

test_read_write Module

Inheritance diagram of pyNastran.bdf.test.unit.test_read_write

class pyNastran.bdf.test.unit.test_read_write.TestReadWrite(methodName='runTest')[source]

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

test_enddata_1()[source]

There is an ENDDATA is in the baseline BDF, so None -> ENDDATA

test_enddata_2()[source]

There is no ENDDATA is in the baseline BDF, so None -> no ENDDATA

test_include_end()[source]

this test fails incorrectly

test_punch_1()[source]

Tests punch file reading

test_read_bad_01()[source]
test_read_include_dir_1()[source]

Tests various read methods using various include files

test_write_1()[source]

Tests 1 read method and various write methods

test_read_write Module

Inheritance diagram of pyNastran.bdf.test.unit.test_read_write

class pyNastran.bdf.test.unit.test_read_write.TestReadWrite(methodName='runTest')[source]

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

test_enddata_1()[source]

There is an ENDDATA is in the baseline BDF, so None -> ENDDATA

test_enddata_2()[source]

There is no ENDDATA is in the baseline BDF, so None -> no ENDDATA

test_include_end()[source]

this test fails incorrectly

test_punch_1()[source]

Tests punch file reading

test_read_bad_01()[source]
test_read_include_dir_1()[source]

Tests various read methods using various include files

test_write_1()[source]

Tests 1 read method and various write methods