def _tests_in_flag_expectations(self): result = set() path = self._flag_expectations_path() for line in self._filesystem.read_text_file(path).split('\n'): expectation_line = TestExpectationLine.tokenize_line(path, line, 0) test_name = expectation_line.name if test_name: result.add(test_name) return result
def _test_name_from_expectation_string(expectation_string): return TestExpectationLine.tokenize_line( filename='', expectation_string=expectation_string, line_number=0).name
def _test_name_from_expectation_string(expectation_string): return TestExpectationLine.tokenize_line(filename='', expectation_string=expectation_string, line_number=0).name