def testGetNoResults(self):
    """Tests get() where no results are returned."""
    mod_type = 'owner'
    target = 'foouser'
    mock_query = self._MockModTypeModel(mod_type)

    self.MockDoUserAuth(is_admin=True)
    self.request.get_all('install_types').AndReturn([])

    self.c.model = mock_query
    self.c.model.all().AndReturn(mock_query)
    mock_query.filter('%s =' % mod_type, target).AndReturn([])
    self.MockError(404)

    self.mox.ReplayAll()
    self.c.get(mod_type=mod_type, target=target)
    self.mox.VerifyAll()
dataset/ETHPy150Open google/simian/src/tests/simian/mac/api/dynamic_manifest_test.py/DynamicManifestHandlersTest.testGetNoResults/original