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