def sanity_insert_entity(self):
        resp = self.tc.insert_entity(TABLE_NO_DELETE, {'PartitionKey':'Lastname', 
                                                       'RowKey':'Firstname', 
                                                       'age':39, 
                                                       'sex':'male', 
                                                       'birthday':datetime(1973,10,04)})
        self.assertEquals(resp, None)

        entity = Entity()
        entity.PartitionKey = 'Lastname'
        entity.RowKey = 'Firstname1'
        entity.age = 39
        entity.Birthday = EntityProperty('Edm.Int64', 20)

        resp = self.tc.insert_entity(TABLE_NO_DELETE, entity)
        self.assertEquals(resp, None)
    def sanity_insert_entity(self):
        resp = self.tc.insert_entity(
            TABLE_NO_DELETE, {
                'PartitionKey': 'Lastname',
                'RowKey': 'Firstname',
                'age': 39,
                'sex': 'male',
                'birthday': datetime(1973, 10, 04)
            })
        self.assertEquals(resp, None)

        entity = Entity()
        entity.PartitionKey = 'Lastname'
        entity.RowKey = 'Firstname1'
        entity.age = 39
        entity.Birthday = EntityProperty('Edm.Int64', 20)

        resp = self.tc.insert_entity(TABLE_NO_DELETE, entity)
        self.assertEquals(resp, None)
 def _create_default_entity_class(self, partition, row):
     '''
     Creates a class-based entity with fixed values, using all
     of the supported data types.
     '''
     entity = Entity()
     entity.PartitionKey = partition
     entity.RowKey = row
     entity.age = 39
     entity.sex = 'male'
     entity.married = True
     entity.deceased = False
     entity.optional = None
     entity.ratio = 3.1
     entity.large = 9333111000
     entity.Birthday = datetime(1973, 10, 4)
     entity.birthday = datetime(1970, 10, 4)
     entity.binary = None
     entity.other = EntityProperty('Edm.Int64', 20)
     entity.clsid = EntityProperty(
         'Edm.Guid', 'c9da6455-213d-42c9-9a79-3e9149a57833')
     return entity