import operations from operations import square from operations import * from operations.packages_calculator.calculator.operations print operations.multiply(3,2) print square(3) print power(2,3)
def test_square_minus_1(): assert square(-1) == 1
def test_square_2(): assert square(2) == 4
def test_square_1(): assert square(1) == 1
def test_square_0(): assert square(0) == 0
def test_square_0(x, y): assert square(x) == y