Computer Science, asked by myranitha, 1 year ago

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 sivaboss214
1

take the reference value and put the mean of tat ,so to obtain class median

Answered by Anonymous
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