tests.test_core

Classes

TestWASimulator

Tests various package level things

TestWAVector

Tests methods related to WAVectors

TestWAQuaternion

Tests methods related to WAQuaternion’s

TestWAArgumentParser

Tests method related to WAArgumentParser

class TestWASimulator(methodName='runTest')[source]

Bases: unittest.TestCase

Tests various package level things

test_main_import(self)[source]

Verifies the main import works

class TestWAVector(methodName='runTest')[source]

Bases: unittest.TestCase

Tests methods related to WAVectors

test_add(self)[source]

Tests simple addition of two WAVectors

test_add2(self)[source]

Tests simple addition of two WAVectors

test_add3(self)[source]

Tests adding a constant to a WAVector

test_sub(self)[source]

Tests simple subtraction of two WAVectors

test_sub2(self)[source]

Tests subtracting a constant to a WAVector

test_mul(self)[source]

Tests multiplying a vector by a constant

test_cross(self)[source]

Tests cross product of two WAVectors

test_dot(self)[source]

Tests dot product of two WAVectors

test_length(self)[source]

Tests the length method of a WAVector

class TestWAQuaternion(methodName='runTest')[source]

Bases: unittest.TestCase

Tests methods related to WAQuaternion’s

test_length(self)[source]

Tests the length method of a WAQuaternion

test_rot(self)[source]

Tests rotation of a vector by a quaternion

class TestWAArgumentParser(methodName='runTest')[source]

Bases: unittest.TestCase

Tests method related to WAArgumentParser

test_default(self)[source]

Tests default arguments