Last active
October 17, 2016 14:59
-
-
Save jorgemdnt/0bc1b6067f1c044c45e36ee97af3d534 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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