Lines Matching refs:self
38 def __init__(self, path, *args):
39 self.path = self._shorten_path(path)
40 self.attributes = args
62 def from_suite(self, suite, filepath):
66 def from_test(self, test, filepath):
75 def __str__(self):
77 self.path_idx: self.path,
78 self.type_idx: self.__class__.__name__
80 return self.sep.join(itertools.chain(
82 self.attributes))
84 def __hash__(self):
85 return hash(str(self))
87 def __eq__(self, other):
88 return type(self) == type(other) and str(self) == str(other)
92 def __init__(self, filename, test_name, suite_name):
93 UID.__init__(self, filename, suite_name, test_name)
96 def test(self):
97 return self.attributes[1]
100 def suite(self):
101 return self.attributes[0]
105 def __init__(self, filename, suite_name):
106 UID.__init__(self, filename, suite_name)
109 def suite(self):
110 return self.attributes[0]