import unittest from krihvel.krihvel import Krihvel class KrihvelTestCase(unittest.TestCase): def test_getTitle(self): krihvel = Krihvel() self.assertEqual(krihvel.getTitle(), krihvel.title) def test_getDescription(self): krihvel = Krihvel() self.assertEqual(krihvel.getDescription(), krihvel.description) def test_test(self): krihvel = Krihvel() self.assertEqual(krihvel.test(), 'test') def test_suite(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(KrihvelTestCase)) return suite if __name__ == '__main__': unittest.main()