We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0a57323 + 500f029 commit 7cf38caCopy full SHA for 7cf38ca
1 file changed
test/test_sendgrid.py
@@ -9,6 +9,7 @@
9
import subprocess
10
import sys
11
import time
12
+import datetime
13
14
host = "http://localhost:4010"
15
@@ -2368,6 +2369,12 @@ def test_whitelabel_links__link_id__subuser_post(self):
2368
2369
request_body=data, request_headers=headers)
2370
self.assertEqual(response.status_code, 200)
2371
2372
+ def test_license_year(self):
2373
+ LICENSE_FILE = 'LICENSE.txt'
2374
+ with open(LICENSE_FILE, 'r') as f:
2375
+ copyright_line = f.readline().rstrip()
2376
+ self.assertEqual('Copyright (c) 2012-%s SendGrid, Inc.' % datetime.datetime.now().year, copyright_line)
2377
+
2378
@classmethod
2379
def tearDownClass(cls):
2380
cls.p.kill()
0 commit comments