I'm very new to python I apologize if this is a stupid question but so far I haven't been able to google it successfully.
I'm making a class called Cookie and it has methods that return the number of cookies created and also resets them. What I am having issues with is in the tests it calls the classes methods on the actual class and not an object created from the class. IE:
instead of:
c = Cookie()
c.count()
they use in the tests:
Cookie.count()
when count is a method in the cookie class but cookie is not an object. So far I have not had success calling methods on the class that they are in, just on objects created by the class. I've always thought of classes as templates to create objects. Can anyone explain this? Thank you.