<s> import scio <EOL> import helpers <EOL> from lxml import etree <EOL> def transport ( req ) : <EOL> return helpers . support ( '<STR_LIT>' , '<STR_LIT:r>' ) <EOL> client = scio . Client ( helpers . support ( '<STR_LIT>' , '<STR_LIT:r>' ) , <EOL> transport = transport ) <EOL> def test_simple_date ( ) : <EOL> notnil = client . type . getNilDateResponse ( '<STR_LIT>' ) <EOL> assert notnil . year == <NUM_LIT> <EOL> assert notnil . month == <NUM_LIT:3> <EOL> assert notnil . day == <NUM_LIT:5> <EOL> def test_nil_simple_date ( ) : <EOL> nil = client . type . getNilDateResponse ( ) <EOL> assert nil is None <EOL> def test_simple_datetime ( ) : <EOL> notnil = client . type . getNilDateTimeResponse ( '<STR_LIT>' ) <EOL> assert notnil . year == <NUM_LIT> <EOL> assert notnil . month == <NUM_LIT:3> <EOL> assert notnil . day == <NUM_LIT:5> <EOL> assert notnil . hour == <NUM_LIT:12> <EOL> assert notnil . minute == <NUM_LIT:1> <EOL> assert notnil . second == <NUM_LIT:2> <EOL> def test_nil_simple_datetime ( ) : <EOL> nil = client . type . getNilDateTimeResponse ( ) <EOL> assert nil is None <EOL> def test_deserialize_complex_nil_response ( ) : <EOL> resp = client . service . getNilDateAndDateTime ( '<STR_LIT:foo>' ) <EOL> assert resp . nilDate is None <EOL> assert resp . nilDateTime is None <EOL> assert resp . niceDate . year == <NUM_LIT> <EOL> assert resp . niceDate . month == <NUM_LIT:11> <EOL> assert resp . niceDate . day == <NUM_LIT:5> <EOL> assert resp . niceDateTime . year == <NUM_LIT> <EOL> assert resp . niceDateTime . month == <NUM_LIT:11> <EOL> assert resp . niceDateTime . day == <NUM_LIT:12> <EOL> assert resp . niceDateTime . hour == <NUM_LIT> <EOL> assert resp . niceDateTime . minute == <NUM_LIT:4> <EOL> assert resp . niceDateTime . second == <NUM_LIT:0> <EOL> assert resp . niceNilDate is None </s>
