Exemplo n.º 1
0
 def test_non_numeric(self):
     with pytest.raises(api.ClientError):
         api._parse_interpolation("Non numeric string")
Exemplo n.º 2
0
 def test_supported_methods_are_valid(self):
     for method in backend.INTERPOLATION_METHODS.keys():
         assert api._parse_interpolation(method) == method
Exemplo n.º 3
0
 def test_default(self):
     assert api._parse_interpolation(
         None) == api.DEFAULT_INTERPOLATION_METHOD
Exemplo n.º 4
0
 def test_default_interpolation_is_valid(self):
     assert (api._parse_interpolation(api.DEFAULT_INTERPOLATION_METHOD) ==
             api.DEFAULT_INTERPOLATION_METHOD)