| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,6 +9,7 @@ | |||
| 9 | 9 | import subprocess | |
| 10 | 10 | import sys | |
| 11 | 11 | import time | |
| 12 | + import datetime | ||
| 12 | 13 | ||
| 13 | 14 | host = "http://localhost:4010" | |
| 14 | 15 | ||
@@ -2368,6 +2369,12 @@ def test_whitelabel_links__link_id__subuser_post(self): | |||
| 2368 | 2369 | request_body=data, request_headers=headers) | |
| 2369 | 2370 | self.assertEqual(response.status_code, 200) | |
| 2370 | 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 | + | ||
| 2371 | 2378 | @classmethod | |
| 2372 | 2379 | def tearDownClass(cls): | |
| 2373 | 2380 | cls.p.kill() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments