def testFilterContentTypesByApp(self):
		url = '/correx/admin/filter/contenttype/'
		
		for app in self.app_list:
			# Issue a GET request.
			response = self.client.get(url, {'app_label': app})
			
			# Check that the response is 200 OK.
			self.failUnlessEqual(response.status_code, 200)
			
			# Load JSON
			json = simplejson.loads(response.content)
			
			# Test to make sure it's a list
			self.failUnlessEqual(type(json), type([]))
			
			# Split the model names from the json
			model_names = [i.values()[0] for i in json if i.values()[0] != '---------']
			
			# Run through the list and make sure each is a legit model
			for model in model_names:
			
				# If it equals null it means the model couldn't be found
				self.failIfEqual(get_model(app, model), None)
Returns True if the named condition exists, False otherwise.
dataset/ETHPy150Open palewire/django-correx/correx/tests/unittests/view_tests.py/CorrexViewTests.testFilterContentTypesByApp--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/pymel/core/language.py/conditionExists