File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Change Log
22All notable changes to this project will be documented in this file.
33
4+ ## [ 1.4.1] - 2015-09-09
5+ ### Added
6+ - Classifiers for compatible python versions
7+ ### Changed
8+ - Assertion test from ` self.assertEqual() ` to ` self.assertDictEqual() ` for Python 3 compatibility
9+
410## [ 1.4.0] - 2015-04-27
511### Added
612- Support for API keys
Original file line number Diff line number Diff line change 1- version_info = (1 , 4 , 0 )
1+ version_info = (1 , 4 , 1 )
22__version__ = '.' .join (str (v ) for v in version_info )
Original file line number Diff line number Diff line change 55 import unittest
66import json
77import sys
8+ import collections
89try :
910 from StringIO import StringIO
1011except ImportError : # Python 3
1819SG_PWD = os .getenv ('SG_PWD' ) or 'SENDGRID_PASSWORD'
1920
2021class TestSendGrid (unittest .TestCase ):
21- maxDiff = None
22+
2223 def setUp (self ):
2324 self .sg = SendGridClient (SG_USER , SG_PWD )
2425
@@ -95,8 +96,9 @@ def test_send(self):
9596 "asm_group_id": 42
9697 }
9798 ''' ))
98- self .assertDictEqual (url , test_url )
99-
99+
100+ self .assertEqual (url , test_url )
101+
100102 @unittest .skipUnless (sys .version_info < (3 , 0 ), 'only for python2' )
101103 def test__build_body_unicode (self ):
102104 """test _build_body() handles encoded unicode outside ascii range"""
You can’t perform that action at this time.
0 commit comments