test_article.py 359 Bytes
Newer Older
luxcem's avatar
luxcem committed
1
2
from django.test import TestCase

luxcem's avatar
luxcem committed
3
4
5
6
7
from rp.models import Article
from rp.factories import ArticleFactory
from rp.apps import RpConfig


luxcem's avatar
luxcem committed
8
9
10
class TestVote(TestCase):
    def setUp(self):
        self.article = ArticleFactory()
luxcem's avatar
luxcem committed
11

luxcem's avatar
luxcem committed
12
13
    def test_init(self):
        assert RpConfig.name == "rp"
luxcem's avatar
luxcem committed
14

luxcem's avatar
luxcem committed
15
16
    def test_article(self):
        assert type(self.article) == Article