<s> from okcupyd import magicnumbers <EOL> def test_yield_exponents_of_two ( ) : <EOL> assert list ( magicnumbers . yield_exponents_of_two ( <NUM_LIT:32> + <NUM_LIT:16> ) ) == [ <NUM_LIT:4> , <NUM_LIT:5> ] <EOL> assert list ( magicnumbers . yield_exponents_of_two ( <NUM_LIT:1> ) ) == [ <NUM_LIT:0> ] <EOL> assert list ( magicnumbers . yield_exponents_of_two ( <NUM_LIT:2> ) ) == [ <NUM_LIT:1> ] <EOL> assert list ( magicnumbers . yield_exponents_of_two ( <NUM_LIT:2> + <NUM_LIT:8> ) ) == [ <NUM_LIT:1> , <NUM_LIT:3> ] <EOL> def test_get_kids_query_with_both_specified ( ) : <EOL> assert magicnumbers . get_kids_int ( [ "<STR_LIT>" ] , [ "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" ] ) == <NUM_LIT> <EOL> assert magicnumbers . get_kids_int ( [ "<STR_LIT>" ] , [ "<STR_LIT>" ] ) == <NUM_LIT> <EOL> assert magicnumbers . get_kids_int ( [ "<STR_LIT>" , "<STR_LIT>" ] , <EOL> [ "<STR_LIT>" ] ) == <NUM_LIT> <EOL> assert magicnumbers . get_kids_int ( [ "<STR_LIT>" , "<STR_LIT>" ] , [ ] ) == <NUM_LIT> <EOL> assert magicnumbers . get_kids_int ( [ "<STR_LIT>" , "<STR_LIT>" ] , <EOL> [ "<STR_LIT>" ] ) == <NUM_LIT> <EOL> def test_get_kids_query_when_has_not_specified ( ) : <EOL> magicnumbers . get_kids_int ( [ ] , [ '<STR_LIT>' ] ) == <NUM_LIT> <EOL> assert magicnumbers . get_kids_int ( [ ] , [ "<STR_LIT>" , <EOL> "<STR_LIT>" ] ) == <NUM_LIT> <EOL> assert magicnumbers . get_kids_int ( [ ] , [ "<STR_LIT>" , <EOL> "<STR_LIT>" ] ) == <NUM_LIT> <EOL> assert magicnumbers . get_kids_int ( [ ] , [ "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" ] ) == <NUM_LIT> <EOL> assert magicnumbers . get_kids_int ( [ ] , [ "<STR_LIT>" , <EOL> "<STR_LIT>" ] ) == <NUM_LIT> <EOL> assert magicnumbers . get_kids_int ( [ ] , [ "<STR_LIT>" ] ) == <NUM_LIT> <EOL> def test_get_kids_int_when_wants_not_specified ( ) : <EOL> assert magicnumbers . get_kids_int ( [ "<STR_LIT>" ] , [ ] ) == <NUM_LIT> <EOL> assert magicnumbers . get_kids_int ( [ "<STR_LIT>" , "<STR_LIT>" ] , [ ] ) == <NUM_LIT> <EOL> def test_get_kids_int_with_all ( ) : <EOL> assert magicnumbers . get_kids_int ( <EOL> [ "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" ] , <EOL> [ "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" ] <EOL> ) == <NUM_LIT> <EOL> def test_bodytype ( ) : <EOL> magicnumbers . filters . bodytype ( '<STR_LIT>' ) == <NUM_LIT:30> , <NUM_LIT:4> <EOL> magicnumbers . filters . bodytype ( [ '<STR_LIT>' , '<STR_LIT>' ] ) == '<STR_LIT>' </s>
