import sendgrid
from sendgrid.helpers.mail import *
from sendgrid.version import __version__

try:
    import unittest2 as unittest
except ImportError:
    import unittest
import os
import subprocess
import sys
import time
import datetime

host = "http://localhost:4010"


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)
