Example #1
0
 def test_provider_class_does_not_exist(self):
     with self.assertRaises(ValidationError):
         dashboard = Dashboard(
             category=self.category,
             data_provider='i.do.not.exist')
         dashboard.full_clean()
Example #2
0
 def test_provider_class_does_not_exist(self):
     with self.assertRaises(ValidationError):
         dashboard = Dashboard(category=self.category,
                               data_provider='i.do.not.exist')
         dashboard.full_clean()
Example #3
0
 def test_provider_is_of_wrong_type(self):
     with self.assertRaises(ValidationError):
         dashboard = Dashboard(
             category=self.category,
             data_provider=IAmNotADashboardProvider)
         dashboard.full_clean()
Example #4
0
 def test_provider_is_of_wrong_type(self):
     with self.assertRaises(ValidationError):
         dashboard = Dashboard(category=self.category,
                               data_provider=IAmNotADashboardProvider)
         dashboard.full_clean()