You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
413 B
Python
16 lines
413 B
Python
from django.utils.timezone import now as tznow
|
|
from django.test import TestCase
|
|
|
|
from nano.faq.models import QA
|
|
|
|
class QATest(TestCase):
|
|
|
|
def test_str(self):
|
|
item = QA(question='blbl', answer='fofo')
|
|
self.assertEqual(str(item), item.question)
|
|
|
|
def test_save(self):
|
|
item = QA(question='blbl', answer='fofo')
|
|
item.save()
|
|
self.assertNotEqual(item.last_modified, None)
|