from django.test.testcases import TestCase
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse

class Example1Test(TestCase):
    def setUp(self):
        user = User.objects.create_superuser('yml', 'yml@yml.fr', 'yml')
        self.client.login(username='yml', password='yml')
    def tearDown(self):
        self.client.logout()
    
    def test_example1_(self):
        response = self.client.get(reverse('admin:placeholderapp_example1_add'))
        
class Example2Test(TestCase):
    def setUp(self):
        user = User.objects.create_superuser('yml', 'yml@yml.fr', 'yml')
        self.client.login(username='yml', password='yml')
    def tearDown(self):
        self.client.logout()
    
    def test_example1_(self):
        response = self.client.get(reverse('admin:placeholderapp_example2_add'))
        
class Example3Test(TestCase):
    def setUp(self):
        user = User.objects.create_superuser('yml', 'yml@yml.fr', 'yml')
        self.client.login(username='yml', password='yml')
    def tearDown(self):
        self.client.logout()
    
    def test_example1_(self):
        response = self.client.get(reverse('admin:placeholderapp_example3_add'))
        
class Example4Test(TestCase):
    def setUp(self):
        user = User.objects.create_superuser('yml', 'yml@yml.fr', 'yml')
        self.client.login(username='yml', password='yml')
    def tearDown(self):
        self.client.logout()
    
    def test_example1_(self):
        response = self.client.get(reverse('admin:placeholderapp_example4_add'))
        
class Example5Test(TestCase):
    def setUp(self):
        user = User.objects.create_superuser('yml', 'yml@yml.fr', 'yml')
        self.client.login(username='yml', password='yml')
    def tearDown(self):
        self.client.logout()
    
    def test_example1_(self):
        response = self.client.get(reverse('admin:placeholderapp_example5_add'))

@@ -124,16 +124,428 @@
  reverse
+%0Afrom django.contrib import admin%0A%0Afrom testapp.placeholderapp.admin import (Example1Admin, Example2Admin,%0A                                          Example3Admin, Example4Admin,%0A                                          Example5Admin)%0Afrom testapp.placeholderapp.models import (Example1, Example2, Example3,%0A                                           Example4, Example5)%0A%0Aclass MockRequest(object):%0A    GET = %7B%7D
 %0A%0Aclass 
@@ -787,33 +787,37 @@
    def test_
-example1_
+admin_add_get
 (self):%0A    
@@ -894,32 +894,275 @@
 add'))%0A        %0A
+    def test_admin_get_fieldsets(self):%0A        request = MockRequest()%0A        example1_admin = Example1Admin(Example1, admin.site)%0A        fieldsets = example1_admin.get_fieldsets(request)%0A        self.assertEqual(len(fieldsets),3)%0A        %0A
 class Example2Te
@@ -1394,33 +1394,37 @@
    def test_
-example1_
+admin_add_get
 (self):%0A    
@@ -1492,32 +1492,266 @@
 example2_add'))%0A
+    def test_admin_get_fieldsets(self):%0A        request = MockRequest()%0A        example2_admin = Example1Admin(Example2, admin.site)%0A        fieldsets = example2_admin.get_fieldsets(request)%0A        self.assertEqual(len(fieldsets),3)%0A
         %0Aclass E
@@ -1992,33 +1992,37 @@
    def test_
-example1_
+admin_add_get
 (self):%0A    
@@ -2090,32 +2090,271 @@
 example3_add'))%0A
+    def test_admin_get_fieldsets(self):%0A        request = MockRequest()%0A        example3_admin = Example1Admin(Example3, admin.site)%0A        fieldsets = example3_admin.get_fieldsets(request)%0A        self.assertEqual(len(fieldsets),3)%0A    %0A
         %0Aclass E
@@ -2595,33 +2595,37 @@
    def test_
-example1_
+admin_add_get
 (self):%0A    
@@ -2693,32 +2693,266 @@
 example4_add'))%0A
+    def test_admin_get_fieldsets(self):%0A        request = MockRequest()%0A        example4_admin = Example1Admin(Example4, admin.site)%0A        fieldsets = example4_admin.get_fieldsets(request)%0A        self.assertEqual(len(fieldsets),3)%0A
         %0Aclass E
@@ -3197,25 +3197,29 @@
 ef test_
-example1_
+admin_add_get
 (self):%0A
@@ -3291,16 +3291,251 @@
 example5_add'))%0A
+    def test_admin_get_fieldsets(self):%0A        request = MockRequest()%0A        example5_admin = Example1Admin(Example5, admin.site)%0A        fieldsets = example5_admin.get_fieldsets(request)%0A        self.assertEqual(len(fieldsets), 4)%0A

Test the get_fieldsets method directly rather with the django 'Client.get'