Skip to content

Commit

Permalink
add missing debate test
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Aug 14, 2024
1 parent 91e25ac commit 68664a6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/test_debate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from unittest import TestCase

from cobalt import Debate


class DebateTestCase(TestCase):
maxDiff = None

def test_empty_debate(self):
d = Debate()
self.assertEqual(d.title, "Untitled")
self.assertIsNotNone(d.meta)
self.assertIsNotNone(d.debateBody)

def test_empty_body(self):
d = Debate()
self.assertNotEqual(d.debateBody.text, '')

def test_main(self):
d = Debate()
self.assertEqual(d.main, d.debate)

0 comments on commit 68664a6

Please sign in to comment.