diff --git a/test/test_sendgrid.py b/test/test_sendgrid.py index 73b6b2935..aceff2e07 100644 --- a/test/test_sendgrid.py +++ b/test/test_sendgrid.py @@ -9,6 +9,7 @@ import subprocess import sys import time +import datetime host = "http://localhost:4010" @@ -2354,6 +2355,12 @@ def test_whitelabel_links__link_id__subuser_post(self): request_body=data, request_headers=headers) self.assertEqual(response.status_code, 200) + def test_license_year(self): + LICENSE_FILE = 'LICENSE.txt' + with open(LICENSE_FILE, 'r') as f: + copyright_line = f.readline().rstrip() + self.assertEqual('Copyright (c) 2012-%s SendGrid, Inc.' % datetime.datetime.now().year, copyright_line) + @classmethod def tearDownClass(cls): cls.p.kill()