What is the purpose of using self.id in tests, while working with unittest?
self.id returns the name of module
self.id returns the name of method
self.id returns the name of class
self.id returns reference value
Answers
Answered by
1
take the reference value and put the mean of tat ,so to obtain class median
Answered by
0
b) self.id returns the name of method
- id() function is an in-built function that accepts only a single input.
- id() function returns the string which is actually the full name of the test method.
- The test object is represented by the string returned.
- The string returned consists of the full name of the test method, It's module name, it's class name.
Similar questions
Math,
6 months ago
Math,
6 months ago
Science,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago
Geography,
1 year ago