Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1668a7489e
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (12 sloc) 0.492 kb
# Copyright (C) 2011-2012 James Rowe <jnrowe@gmail.com>
#
# This file is part of python-github2, and is made available under the 3-clause
# BSD license. See LICENSE for the full details.
from nose.tools import assert_equals
from github2.request import charset_from_headers
def no_match_test():
d = {}
assert_equals("ascii", charset_from_headers(d))
def utf_test():
d = {'content-type': 'application/json; charset=utf-8'}
assert_equals("utf-8", charset_from_headers(d))
Jump to Line
Something went wrong with that request. Please try again.