def test_customer_static_method(self): Customer.id = 1 self.assertEqual(Customer.get_next_id(), 1)
customer = Customer("John", "Maple Street", "*****@*****.**") equipment = Equipment("Treadmill") trainer = Trainer("Peter") subscription = Subscription("14.05.2020", 1, 1, 1) plan = ExercisePlan(1, 1, 20) gym = Gym() gym.add_customer(customer) gym.add_equipment(equipment) gym.add_trainer(trainer) gym.add_plan(plan) gym.add_subscription(subscription) print(Customer.get_next_id()) print(gym.subscription_info(1)) # c = Customer("Sofia", "Lozen", "*****@*****.**") # print(c) # # m = Customer("Sofia", "Lozen", "*****@*****.**") # print(c) # print(m) # equip1 = Equipment("Number 1") # equip2 = Equipment("Number 2") # print(equip1) # print(equip2) # ep1 = ExercisePlan(1, 1, 32) # ep2 = ExercisePlan.from_hours(1, 1, 3)