Пример #1
0
	def test_answer_with_no_status(self):
		data = {"data":"good data"}
		true_data = {
			"status":400
		}
		real_data = get_data(data)
		self.assertEqual(true_data["status"],real_data["status"])
Пример #2
0
	def test_answer_with_code(self):
		data = {"code":200,"data":"good data"}
		true_data = {
			"status":data["code"],
			"data":data["data"]
		}
		real_data = get_data(data)
		self.assertEqual(true_data,real_data)
Пример #3
0
def messages_create(data):
	response = main_post(data,settings.LEBOWSKI['URLS']['MESSAGES']['CREATE'])
	return get_data(response)
Пример #4
0
def places_create(data):
	response = main_post(data,settings.LEBOWSKI['URLS']['PLACES']['CREATE'])
	return get_data(response)
Пример #5
0
def users_create(data):
	response = main_post(data,settings.LEBOWSKI['URLS']['USERS']['CREATE'])
	return get_data(response)
Пример #6
0
def messages_create(data):
    response = main_post(data, settings.LEBOWSKI['URLS']['MESSAGES']['CREATE'])
    return get_data(response)
Пример #7
0
def places_create(data):
    response = main_post(data, settings.LEBOWSKI['URLS']['PLACES']['CREATE'])
    return get_data(response)
Пример #8
0
def users_create(data):
    response = main_post(data, settings.LEBOWSKI['URLS']['USERS']['CREATE'])
    return get_data(response)