init_tests

Full name: ase2sprkkr.common.test.test.init_tests

Module class hierarchy

Inheritance diagram of ase2sprkkr.common.test.test.init_tests.TestCase, ase2sprkkr.common.test.test.init_tests.extdict

Description

Routines and classes used in tests

Functions

arr_testfce(a, b, msg, **kwargs)

assert_almost_equal does not work for non-numeric dtypes

assertDictEqual(a, b[, msg])

assertListEqual(a, b[, msg])

assert_almost_equals(a, b[, msg])

assert_equals(a, b[, msg])

patch_package(package, name)

Set the package name for the tests, to make the relative imports working.

run_sprkkr(fn)

run this test only if SPRKKR executable can be runned

testfce(fce[, msg])

Classes

TestCase()

A testcase class with some usefull assertions and a better numpy arrays comparison

extdict