diff --git a/test/__init__.py b/test/__init__.py index 9bf8b07..241d00e 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -76,6 +76,15 @@ def test_drop_empty(self): header.add_filter('testFilter', 'filter', 'filterValue') self.assertEqual(self.dropsHeader, json.loads(header.json_string())) + def test_license_year(self): + LICENSE_FILE = 'LICENSE.txt' + copyright_line = '' + with open(LICENSE_FILE, 'r') as f: + for line in f: + if line.startswith('Copyright'): + copyright_line = line.strip() + break + self.assertEqual('Copyright (c) 2013-%s SendGrid, Inc.' % datetime.datetime.now().year, copyright_line) class TestRepository(unittest.TestCase):