Implement a class called Calculator in the /app/ directory that provides functionality for basic arithmetic operations. The class should include the following methods:
add(a: float, b: float) -> float: This method should return the sum of two numbers, a and b.
subtract(a: float, b: float) -> float: This method should return the difference when b is subtracted from a.
multiply(a: float, b: float) -> float: This method should return the product of two numbers, a and b.
divide(a: float, b: float) -> float: This method should return the result of dividing a by b. If b is zero, the method should raise a ValueError with the message "Cannot divide by zero."
Requirements:
Ensure that the Calculator class is properly defined with the required methods.
Include appropriate exception handling for the division method to prevent division by zero.
The methods should accept floating-point numbers and return floating-point results.
Provide adequate unit tests to verify the functionality of each method in the class.
Place your implementation in a file named calculator.py within the /app/ directory.