Have a Snippet?

Keep, track and share your code snippets with your friends

Python: Some tests Share on Vkontakte

Some tests for my little project. Yay.

class CommentsTestCase(TestCase):

    def setUp(self):
        self.comment = Comment()

    def test_id(self):
        self.assertTrue(isinstance(self.comment.id, int))


Tag: unittest, python, nosql, redis

0 Comments