def testNameType(self): m = MetricItem() m.setName("foo") self.assertTrue(type(m.getName()) == str, "Name is not a string")
def testName(self): m = MetricItem() m.setName("foo") self.assertEquals(m.getName(), "foo", "Names not equal")