mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-22 11:23:13 +00:00
15 lines
305 B
Python
15 lines
305 B
Python
from __future__ import unicode_literals
|
|
from django.test import TestCase
|
|
|
|
|
|
class HeaderTest(TestCase):
|
|
|
|
def test_pokemon(self):
|
|
|
|
response = self.client.get(
|
|
'/api/v2/pokemon/1/',
|
|
HTTP_ORIGIN="http://pokemon.com"
|
|
)
|
|
|
|
self.assertEqual(response['Access-Control-Allow-Origin'], '*')
|
|
|