function assertOwnProperty (name, msg) {
    if (msg) flag(this, 'message', msg);
    var obj = flag(this, 'object');
    this.assert(
        obj.hasOwnProperty(name)
      , 'expected #{this} to have own property ' + _.inspect(name)
      , 'expected #{this} to not have own property ' + _.inspect(name)
    );
  }
### .ownProperty(name)

Asserts that the target has an own property `name`.

    expect('test').to.have.ownProperty('length');

@name ownProperty
@alias haveOwnProperty
@param {String} name
@param {String} message _optional_
@namespace BDD
@api public