1def test_and(a,b): 2 """ 3 >>> test_and(None, None) 4 True 5 >>> test_and(None, 1) 6 False 7 >>> test_and(1, None) 8 False 9 """ 10 return a is None and b is None 11 12def test_more(a,b): 13 """ 14 >>> test_more(None, None) 15 True 16 >>> test_more(None, 1) 17 True 18 >>> test_more(1, None) 19 False 20 >>> test_more(None, 0) 21 False 22 """ 23 return a is None and (b is None or b == 1) 24 25def test_more_c(a,b): 26 """ 27 >>> test_more_c(None, None) 28 True 29 >>> test_more_c(None, 1) 30 True 31 >>> test_more_c(1, None) 32 False 33 >>> test_more_c(None, 0) 34 False 35 """ 36 return (a is None or 1 == 2) and (b is None or b == 1) 37