Beispiel #1
0
    def test_home_with_whiteboard(self):
        msg = WhiteboardMessage(message='test_message')
        msg.save()

        response = self.client.get(reverse('home'))
        self.assertContains(response, 'whiteboard')
        self.assertContains(response, 'test_message')
Beispiel #2
0
    def test_home_with_whiteboard(self):
        msg = WhiteboardMessage(message='test_message')
        msg.save()

        response = self.client.get(reverse('home'))
        self.assertContains(response, 'whiteboard')
        self.assertContains(response, 'test_message')
Beispiel #3
0
    def test_home_with_whiteboard(self):
        msg = WhiteboardMessage(message="test_message")
        msg.save()

        response = self.client.get(reverse("home"))
        self.assertContains(response, "whiteboard")
        self.assertContains(response, "test_message")
Beispiel #4
0
    def test_home_with_whiteboard(self):
        msg = WhiteboardMessage(message="test_message")
        msg.save()

        response = self.client.get(reverse("home"))
        self.assertContains(response, "whiteboard")
        self.assertContains(response, "test_message")
Beispiel #5
0
    def test_can_be_imported(self):
        """Test that whiteboard model can be imported.

        Rather dumb test just to make sure there are no obvious parsing errors.
        """
        WhiteboardMessage()