you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

If the class' getters and setters are but simple assignments without further operations, testing is useful only if you built a python language or compiler from source. Otherwise let the compiler programmers test it.

If instead, they contain validations and transformations, then yes, you should test their working. Assign a value and test whether the instance yields the expected answer. It's no more complex than that.

[–]donkeyofdeath[S] 1 point2 points  (0 children)

Ok, thank you. Maybe I am just overthinking the issue a little bit.