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