We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b980bfe commit bb9f452Copy full SHA for bb9f452
test/__init__.py
@@ -1,4 +1,5 @@
1
import unittest, json, decimal, os
2
+import datetime
3
from smtpapi import SMTPAPIHeader
4
5
@@ -72,6 +73,15 @@ def test_drop_empty(self):
72
73
header.add_filter('testFilter', 'filter', 'filterValue')
74
self.assertEqual(self.dropsHeader, json.loads(header.json_string()))
75
76
+ def test_license_year(self):
77
+ LICENSE_FILE = 'LICENSE.txt'
78
+ copyright_line = ''
79
+ with open(LICENSE_FILE, 'r') as f:
80
+ for line in f:
81
+ if line.startswith('Copyright'):
82
+ copyright_line = line.strip()
83
+ break
84
+ self.assertEqual('Copyright (c) 2013-%s SendGrid, Inc.' % datetime.datetime.now().year, copyright_line)
85
86
class TestRepository(unittest.TestCase):
87
0 commit comments