コード例 #1
0
 def test_configured_connection_exists(self):
     configured_haystack_connection('grerple')
コード例 #2
0
 def test_chosen_connection_not_configured(self):
     with self.assertRaises(ValidationError):
         configured_haystack_connection('not_grerple')
コード例 #3
0
 def test_no_configured_connections(self):
     with self.assertRaises(ValidationError):
         configured_haystack_connection('ghost')