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()
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()
def test_provider_is_of_wrong_type(self): with self.assertRaises(ValidationError): dashboard = Dashboard( category=self.category, data_provider=IAmNotADashboardProvider) dashboard.full_clean()
def test_provider_is_of_wrong_type(self): with self.assertRaises(ValidationError): dashboard = Dashboard(category=self.category, data_provider=IAmNotADashboardProvider) dashboard.full_clean()