import unittest
from boxcarpush import Boxcar


class BoxcarTests(unittest.TestCase):
    """Test functionality of boxcar api"""

    def setUp(self):
        self.boxcar = Boxcar()

    def test_boxcar(self):
        self.assertIsInstance(self.boxcar, Boxcar)

    def test_push(self):
        """Check for successful HTTP Response for notification"""
        self.boxcar.push(title="Test title", message="Test message")

if __name__ == '__main__':
    unittest.main()
