Пример #1
0
class CommentAdminModelTest(TestCase):
    _multiprocess_can_split_ = True

    def setUp(self):
        self.commentadmin = CommentAdmin(Comment, AdminSite())

    def test_base_fields(self):
        self.assertEqual(
            self.commentadmin.get_form(None).base_fields.keys(),
            ['body'])
Пример #2
0
 def setUp(self):
     self.commentadmin = CommentAdmin(Comment, AdminSite())