-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91e25ac
commit 68664a6
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |