1
0
mirror of https://github.com/pyro2927/SouthwestCheckin.git synced 2025-12-06 01:13:19 +00:00

Making header generation test more useful

This commit is contained in:
Joseph Pintozzi
2019-04-28 20:14:29 -07:00
parent a680d6f4c0
commit 15b851eded

View File

@@ -13,7 +13,9 @@ r = southwest.Reservation('XXXXXX', 'John', 'Smith')
@my_vcr.use_cassette()
def test_generate_headers():
print(southwest.Reservation.generate_headers())
headers = southwest.Reservation.generate_headers()
assert(headers['Content-Type'] == 'application/json')
assert(headers['X-API-Key'] == 'l7xx0a43088fe6254712b10787646d1b298e')
@my_vcr.use_cassette()