def testCreateHalf(self): t1 = Type.half() t2 = Type.half(self.global_context) self.assertEqual(t1, t2) self.assertEqual('half', t1.name)