general consensus I\'ve done quite a lot of reading up on the subject of testing complex classes and private methods.
I have some code (that I can\'t easily modify), of the following form: def foo(x): do_other_stuff_that_I_do_not_want_to_do()
This question already has answers here: 开发者_运维技巧 How do I test a class that has private methods, fields or inner classes?
In many frameworks, internal function variables are used as private variables, for example Raphael = (function(){
I have a private method in my controller. which is used for some database update. this method i am calling from another controller method. and it works fine.
We have a Student class in our business model. something struck me as strange, if we are manipulating one student from another student, the students private members are visible, why is this?