def test_count(self):
		for i in range(100):
			DummyModel.objects.create(
			name="%idummy" % (i%3),
			number = i,
			description="Some Dummy Description"
		)

		querystring_data = {
			"take": 10,
			"skip": 0,
			"page": 1,
			"pageSize": 10,
			"filter": {
				"logic": "and",
				"filters": [
					{
						"field": "name",
						"operator": "startswith",
						"value": "1du"
					}
				]
			}
		}


		request = self.factory.get(
			"/?%s" % builder.build(querystring_data),
			HTTP_ACCEPT_ENCODING='application/json'
		)

		response = self.view(request)
		json_response = json.loads(response.content)
		self.assertEquals(json_response['result'], 1)
		self.assertEquals(len(json_response['payload']), 10)
		self.assertTrue(json_response.has_key('count'))
		self.assertEquals(json_response['count'], 33)
Tests ensuring the job exists and deleting it
dataset/ETHPy150Open tnajdek/django-kendoui-backend/kendoui_backend/tests.py/KendoUITest.test_count--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/utils/schedule_test.py/ScheduleTestCase.test_delete_job_exists