def test_that_it_raises_an_exception(self): nbhd = create_neighborhood() assert_raises(NoSuchProjectError, set_context, 'myproject', neighborhood=nbhd)
def test_proper_exception_when_id_lookup(self): nbhd = create_neighborhood() assert_raises(NoSuchProjectError, set_context, ObjectId(), neighborhood=None)
def test_proper_exception_when_id_lookup(self): create_neighborhood() assert_raises(NoSuchProjectError, set_context, ObjectId(), neighborhood=None)