示例#1
0
文件: tests.py 项目: dsunca/django
 def test_inline_media_only_base(self):
     holder = Holder(dummy=13)
     holder.save()
     Inner(dummy=42, holder=holder).save()
     change_url = '/test_admin/admin/admin_inlines/holder/%i/' % holder.id
     response = self.client.get(change_url)
     self.assertContains(response, 'my_awesome_admin_scripts.js')
示例#2
0
文件: tests.py 项目: ssaltzman/POET
 def test_inline_media_only_base(self):
     holder = Holder(dummy=13)
     holder.save()
     Inner(dummy=42, holder=holder).save()
     change_url = '/test_admin/admin/admin_inlines/holder/%i/' % holder.id
     response = self.client.get(change_url)
     self.assertContains(response, 'my_awesome_admin_scripts.js')
示例#3
0
    def setUp(self):
        holder = Holder(dummy=13)
        holder.save()
        Inner(dummy=42, holder=holder).save()
        self.change_url = '/test_admin/admin/admin_inlines/holder/%i/' % holder.id

        result = self.client.login(username='******', password='******')
        self.failUnlessEqual(result, True)
示例#4
0
文件: tests.py 项目: dsunca/django
    def setUp(self):
        holder = Holder(dummy=13)
        holder.save()
        Inner(dummy=42, holder=holder).save()
        self.change_url = '/test_admin/admin/admin_inlines/holder/%i/' % holder.id

        result = self.client.login(username='******', password='******')
        self.assertEqual(result, True)