def testDeleteById(self):
    sid = '123'
    self._StubGetModelClass()

    ads = self._GetAds()
    self._MockGetConfig(ads, 'config')
    self._MockGetConfig(ads, 'config2')

    session = self.mox.CreateMockAnything()
    session.delete(rpc='config2').AndReturn(None)

    ads.model.get_by_key_name(sid, rpc='config').AndReturn(session)

    self.mox.ReplayAll()
    ads.DeleteById(sid)
    self.mox.VerifyAll()
Returns the text representation of the object trait.
dataset/ETHPy150Open google/simian/src/tests/simian/auth/gaeserver_test.py/Auth1ServerDatastoreSessionTest.testDeleteById--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/editor.py/Editor._get_str_value