def test_cube(self): result = cube.vol(1.5) self.assertEqual(result, 3.375)
def test_vol(self): self.assertEqual(cube.vol(3), 27)
def test_cube3(self): result = cube.vol(-1) self.assertEqual(result, -1)
def test_cube1(self): result = cube.vol(4) self.assertEqual(result, 64)
def test_volf(self): self.assertEqual(cube.vol(5, 5, 5), 10)
def test_vol(self): self.assertEqual(cube.vol(10, 2, 5), 100)
def test_dec(self): self.assertEqual(cube.vol(2.2, 1, 1), 2.2)
def test_voltype(self): self.assertEqual(cube.vol('x', 'y', 'z'), 0)
def test_volneg(self): self.assertEqual(cube.vol(-10, 2, 5), 0)