Skip to content

Instantly share code, notes, and snippets.

View lbjay's full-sized avatar

Jay Luker lbjay

View GitHub Profile
@lbjay
lbjay / 0_reuse_code.js
Created December 15, 2015 16:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
def test_user_logged_in_cookie_1(self):
"""test that if the user is logged in and the cookies are not right, some new cookies are sent back"""
print "between here"
with self.app.test_client() as c:
with c.session_transaction() as sess:
sess['user_id'] = u'4d2203d39f'
sess['_fresh'] = True
resp = c.get('/')
#print resp.headers