<s> import bayeslite <EOL> def test_conditional_probability_pathologies ( ) : <EOL> data = [ <EOL> [ '<STR_LIT:x>' , '<STR_LIT:a>' ] , [ '<STR_LIT:x>' , '<STR_LIT:a>' ] , [ '<STR_LIT:x>' , '<STR_LIT:a>' ] , <EOL> [ '<STR_LIT:y>' , '<STR_LIT:b>' ] , [ '<STR_LIT:y>' , '<STR_LIT:b>' ] , [ '<STR_LIT:y>' , '<STR_LIT:b>' ] , <EOL> ] <EOL> with bayeslite . bayesdb_open ( ) as bdb : <EOL> bdb . sql_execute ( '<STR_LIT>' ) <EOL> for row in data : <EOL> bdb . sql_execute ( '<STR_LIT>' , row ) <EOL> bdb . execute ( '''<STR_LIT>''' ) <EOL> bdb . execute ( '<STR_LIT>' ) <EOL> bdb . execute ( '<STR_LIT>' ) <EOL> assert bdb . execute ( '''<STR_LIT>''' ) . fetchvalue ( ) < <NUM_LIT:1> <EOL> assert bdb . execute ( '''<STR_LIT>''' ) . fetchvalue ( ) == <NUM_LIT:1> <EOL> assert bdb . execute ( '''<STR_LIT>''' ) . fetchvalue ( ) == <NUM_LIT:1> <EOL> assert bdb . execute ( '''<STR_LIT>''' ) . fetchvalue ( ) == <NUM_LIT:0> </s>
