def METHOD_NAME(self):
    yield self.insert_test_data([
        fakedb.Object(id=19, name='someobj',
                      class_name='someclass')])
    objectid = yield self.db.state.getObjectId('someobj', 'someclass')
    self.assertEqual(objectid, 19)