Skip to content

Instantly share code, notes, and snippets.

@jorgemdnt
Last active October 17, 2016 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorgemdnt/0bc1b6067f1c044c45e36ee97af3d534 to your computer and use it in GitHub Desktop.
Save jorgemdnt/0bc1b6067f1c044c45e36ee97af3d534 to your computer and use it in GitHub Desktop.
# coding=utf-8
import unittest
from star_wars.starwars_gateway_swapi import StarWarsGatewaySWAPI
class StarWarsGatewaySWAPITests(unittest.TestCase):
def setUp(self):
self.dados_starwars_gateway = StarWarsGatewaySWAPI()
def test_obtem_resposta_do_servidor(self):
resposta = self.dados_starwars_gateway.buscar_dados()
self.assertEqual(200, resposta.status_code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment