def METHOD_NAME(self, content, name, expectedType, expectedValue):
    typeFound = False
    helpFound = False
    valueFound = False
    for line in content.splitlines():
        if name in str(line):
            tokens = line.split(' ')
            if line.startswith('# HELP'):
                self.assertGreaterEqual(len(tokens), 4)
                if tokens[2] == name:
                    helpFound = True
            elif line.startswith('# TYPE'):
                self.assertEqual(len(tokens), 4)
                if tokens[2] == name:
                    typeFound = True
                    self.assertEqual(tokens[3], expectedType)
            elif not line.startswith('#'):
                self.assertEqual(len(tokens), 2)
                if tokens[0] == name:
                    valueFound = True
                    self.assertEqual(int(tokens[1]), expectedValue)
    self.assertTrue(typeFound)
    self.assertTrue(helpFound)
    self.assertTrue(valueFound)