<s> from preggy import expect <EOL> EMPTY_DATA = ( <EOL> '<STR_LIT>' , <EOL> [ ] , <EOL> { } , <EOL> tuple ( [ ] ) <EOL> ) <EOL> NOT_EMPTY_DATA = ( <EOL> '<STR_LIT>' , <EOL> [ <NUM_LIT:1> ] , <EOL> { '<STR_LIT:a>' : '<STR_LIT:b>' } , <EOL> tuple ( [ <NUM_LIT:2> ] ) <EOL> ) <EOL> def is_empty ( item ) : <EOL> expect ( item ) . to_be_empty ( ) <EOL> def is_not_empty ( item ) : <EOL> expect ( item ) . Not . to_be_empty ( ) <EOL> expect ( item ) . not_to_be_empty ( ) <EOL> def test_emptiness_assertion_works ( ) : <EOL> for empty_item in EMPTY_DATA : <EOL> yield is_empty , empty_item <EOL> def test_not_emptiness_assertion_works ( ) : <EOL> for not_empty_item in NOT_EMPTY_DATA : <EOL> yield is_not_empty , not_empty_item </s>
