Exemplo n.º 1
0
  def testIsComposite(self):
    """Tests the IsComposite function."""
    data_type_definition = data_types.UUIDDefinition(
        'guid', aliases=['GUID'], description='GUID')

    result = data_type_definition.IsComposite()
    self.assertTrue(result)
Exemplo n.º 2
0
    def testGetStructFormatString(self):
        """Tests the GetStructFormatString function."""
        data_type_definition = data_types.UUIDDefinition(u'guid',
                                                         aliases=[u'GUID'],
                                                         description=u'GUID')

        struct_format_string = data_type_definition.GetStructFormatString()
        self.assertEqual(struct_format_string, u'IHH8B')
Exemplo n.º 3
0
 def testInitialize(self):
     """Tests the __init__ function."""
     data_type_definition = data_types.UUIDDefinition(u'guid',
                                                      aliases=[u'GUID'],
                                                      description=u'GUID')
     self.assertIsNotNone(data_type_definition)