|  | @@ -1,5 +1,7 @@
 | 
	
		
			
				|  |  |  from django.contrib.auth.models import User
 | 
	
		
			
				|  |  | +from django.core.urlresolvers import reverse
 | 
	
		
			
				|  |  |  from django.test import TestCase, Client
 | 
	
		
			
				|  |  | +from jet.dashboard.dashboard import Dashboard
 | 
	
		
			
				|  |  |  from jet.dashboard.modules import LinkList, RecentActions
 | 
	
		
			
				|  |  |  from jet.dashboard.models import UserDashboardModule
 | 
	
		
			
				|  |  |  from jet.tests.dashboard import TestIndexDashboard
 | 
	
	
		
			
				|  | @@ -61,5 +63,23 @@ class DashboardTestCase(TestCase):
 | 
	
		
			
				|  |  |          self.assertEqual(media.css[0], 'file.css')
 | 
	
		
			
				|  |  |          self.assertEqual(media.css[1], 'file2.css')
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    def test_index_dashboard_view(self):
 | 
	
		
			
				|  |  | +        response = self.admin.get(reverse('admin:index'))
 | 
	
		
			
				|  |  | +        self.assertEqual(response.status_code, 200)
 | 
	
		
			
				|  |  | +        self.assertTrue('dashboard' in response.context)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        dashboard = response.context['dashboard']
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        self.assertIsInstance(dashboard, Dashboard)
 | 
	
		
			
				|  |  | +        self.assertIsNone(dashboard.app_label)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    def test_app_index_dashboard_view(self):
 | 
	
		
			
				|  |  | +        app_label = 'tests'
 | 
	
		
			
				|  |  | +        response = self.admin.get(reverse('admin:app_list', args=(app_label,)))
 | 
	
		
			
				|  |  | +        self.assertEqual(response.status_code, 200)
 | 
	
		
			
				|  |  | +        self.assertTrue('dashboard' in response.context)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        dashboard = response.context['dashboard']
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        self.assertIsInstance(dashboard, Dashboard)
 | 
	
		
			
				|  |  | +        self.assertEqual(dashboard.app_label, app_label)
 |