def test_configured_connection_exists(self): configured_haystack_connection('grerple')
def test_chosen_connection_not_configured(self): with self.assertRaises(ValidationError): configured_haystack_connection('not_grerple')
def test_no_configured_connections(self): with self.assertRaises(ValidationError): configured_haystack_connection('ghost')