def test_check_for_valid_box_package_with_exceeded_dimensions(self): package = BoxPackage() package.add_item(BoxPackage.MAX_HEIGHT + 1.0, BoxPackage.MAX_WIDTH + 1.0, BoxPackage.MAX_DEPTH + 1.0, 2.0) self.assertFalse(package.is_valid())
def test_check_for_valid_box_package_with_exceeded_volume(self): package = BoxPackage() package.add_item(100.0, 100.0, 100.0, 5.0) self.assertFalse(package.is_valid())
def test_check_for_valid_box_package_with_valid_dimensions(self): package = BoxPackage() package.add_item(15.0, 20.0, 35.0, 1.2) self.assertTrue(package.is_valid())