sensus.tools

class sensus.tools.Dummy(a, b)[source]

Dummy class for testing purposes sensus.utils.pc2pc_object()

Parameters:
aint

First parameter

bint

Second parameter

Examples

>>> d = Dummy(1, 2)
>>> d.add()
3
Attributes:
aint

First parameter

bint

Second parameter

Methods

add()

Add two numbers together

sub()

Subtract two numbers

mul()

Multiply two numbers

div()

Divide two numbers

add()[source]

Add two numbers together

Returns:
int

Sum of a and b

Raises:
ValueError

If a or b is not int or float

div()[source]

Divide two numbers

Returns:
int

Quotient of a and b

Raises:
ValueError

If a or b is not int or float

ZeroDivisionError

If b is zero

mul()[source]

Multiply two numbers

Returns:
int

Product of a and b

Raises:
ValueError

If a or b is not int or float

sub()[source]

Subtract two numbers

Returns:
int

Difference of a and b

Raises:
ValueError

If a or b is not int or float