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