Implement a class named Calculator in the /app/ directory that should support basic arithmetic operations: addition, subtraction, multiplication, and division. The class should have the following methods:
add(a: float, b: float) -> float: Returns the sum of a and b.
subtract(a: float, b: float) -> float: Returns the result of subtracting b from a.
multiply(a: float, b: float) -> float: Returns the product of a and b.
divide(a: float, b: float) -> float: Returns the result of dividing a by b. If b is zero, it should raise a ValueError with the message "Cannot divide by zero".
Requirements:
Ensure that all methods are able to handle both integer and floating-point numbers.
Write unit tests for each method to validate their functionality.
Make sure to handle division by zero gracefully.
By completing this task, the provided test code for the Calculator class will pass successfully.