Exemple #1
0
 def test_cast_value_5(self):
     assert cast_value(bool, 1) is True
Exemple #2
0
 def test_cast_value_4(self):
     assert cast_value(bool, 'false') is False
Exemple #3
0
 def test_cast_value_2(self):
     assert cast_value(None, 1) == 1
Exemple #4
0
 def test_cast_value_3(self):
     assert cast_value(bool, 'true') is True
Exemple #5
0
 def test_cast_value_1(self):
     assert cast_value(str, None) is None