Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
import unittest
from messageboard import MessageController
import datetime
class TestMessageController(unittest.TestCase):
def setUp(self):
self.__message_controller = MessageController()
# MessageController displays message correctly
def test_issue_has_title(self):
message = self.__message_controller.display_message("this is a test message")
now = datetime.datetime.now()
self.assertEqual(message, now.strftime("%Y-%m-%d %H:%M:%S") + " " + "this is a test message")