Implement a simple "BankAccount" class in the /app/ directory that models the basic functionality of a bank account. The class should have the following requirements:
Attributes:
A private attribute balance that stores the current balance of the account as a float.
Constructor:
A constructor that takes an initial balance as a parameter and initializes the balance attribute. The initial balance should be a non-negative float.
Methods:
deposit(amount: float): Accepts a float value as an amount to be deposited. This method should increase the balance by the amount. The method should raise a ValueError if the amount is negative.
withdraw(amount: float): Accepts a float value as an amount to be withdrawn. This method should decrease the balance by the amount. If the withdrawal amount exceeds the current balance, it should raise a ValueError. The method should also raise a ValueError if the amount is negative.
get_balance() -> float: Returns the current balance of the account.
Behavior:
Ensure that any attempts to deposit or withdraw a negative amount result in a ValueError.
The balance should never be negative after a deposit or withdrawal operation.
The implementation of the BankAccount class should pass all the tests defined in the provided test code. Please ensure to take edge cases into account while implementing the class methods.