Ejemplo n.º 1
0
 def test_no_choices(self):
     get_best_json(choices=[])
Ejemplo n.º 2
0
 def test_no_alternatives(self, symbol_by_name):
     symbol_by_name.side_effect = ImportError()
     with self.assertRaises(ImportError):
         get_best_json()
Ejemplo n.º 3
0
 def test_no_alternatives(self, symbol_by_name):
     from thorn.utils import json
     symbol_by_name.side_effect = ImportError()
     with pytest.raises(ImportError):
         json.get_best_json()
Ejemplo n.º 4
0
 def test_no_alternatives(self, symbol_by_name):
     symbol_by_name.side_effect = ImportError()
     with self.assertRaises(ImportError):
         get_best_json()