Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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()