Skip to content

Commit

Permalink
Something like a first test.
Browse files Browse the repository at this point in the history
  • Loading branch information
okin committed May 5, 2012
1 parent 53d367f commit c8ab62f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/proposition_test.py
@@ -0,0 +1,19 @@
import unittest

from proposition import Proposition

class PropositionTest(unittest.TestCase):
def setUp(self):
self.prop = Proposition('foo', 20120430, 'http://www.frankfurt-gestalten.de', 'APPD', 'OF_1234', 1234)

def tearDown(self):
del self.prop

def testTitle(self):
self.assertEqual('foo', self.prop.title)

def testURL(self):
self.assertEqual('http://www.frankfurt-gestalten.de', self.prop.link)

def testParty(self):
self.assertEqual('APPD', self.prop.party)

0 comments on commit c8ab62f

Please sign in to comment.