Task Description: Implement a Simple Calculator Functionality
You are required to implement a simple calculator that performs basic arithmetic operations: addition, subtraction, multiplication, and division. The calculator should provide a method for each operation.
Requirements:
Create a new file named calculator.py in the /app/ directory.
Define a class named Calculator within calculator.py that includes the following methods:
add(a: float, b: float) -> float: Returns the sum of a and b.
subtract(a: float, b: float) -> float: Returns the difference when b is subtracted from a.
multiply(a: float, b: float) -> float: Returns the product of a and b.
divide(a: float, b: float) -> float: Returns the quotient when a is divided by b. If b is zero, raise a ValueError with the message "Division by zero is not allowed."
Ensure that each method is accessible to be called upon creating an instance of the Calculator class.
Write unit tests to verify the correctness of each arithmetic operation, including edge cases (e.g., dividing by zero).
The implementation should adhere to Python's PEP 8 style guide for code formatting.
Ensure that your implementation meets all the requirements to pass the provided test cases successfully.