<s> '''<STR_LIT>''' <EOL> import bnpy <EOL> import unittest <EOL> class TestMOVBWithBirth ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> birthP = dict ( fracLapsBirth = <NUM_LIT> ) <EOL> algP = dict ( nLap = <NUM_LIT:10> , birth = birthP ) <EOL> self . learnAlg = bnpy . learnalg . MemoizedOnlineVBLearnAlg ( savedir = None , seed = <NUM_LIT:0> , <EOL> algParams = algP , outputParams = dict ( ) ) <EOL> def test_do_birth_at_lap ( self ) : <EOL> assert self . learnAlg . do_birth_at_lap ( <NUM_LIT:0> ) <EOL> assert self . learnAlg . do_birth_at_lap ( <NUM_LIT:0.5> ) <EOL> assert self . learnAlg . do_birth_at_lap ( <NUM_LIT:1> ) <EOL> assert self . learnAlg . do_birth_at_lap ( <NUM_LIT:2> ) <EOL> assert self . learnAlg . do_birth_at_lap ( <NUM_LIT:8> ) <EOL> assert not self . learnAlg . do_birth_at_lap ( <NUM_LIT> ) <EOL> assert not self . learnAlg . do_birth_at_lap ( <NUM_LIT> ) <EOL> assert not self . learnAlg . do_birth_at_lap ( <NUM_LIT:9> ) <EOL> assert not self . learnAlg . do_birth_at_lap ( <NUM_LIT:10> ) <EOL> assert not self . learnAlg . do_birth_at_lap ( <NUM_LIT> ) <EOL> class TestMOVBWithBirthFracThatNeedsRounding ( TestMOVBWithBirth ) : <EOL> '''<STR_LIT>''' <EOL> def setUp ( self ) : <EOL> birthP = dict ( fracLapsBirth = <NUM_LIT> ) <EOL> algP = dict ( nLap = <NUM_LIT:10> , birth = birthP ) <EOL> self . learnAlg = bnpy . learnalg . MemoizedOnlineVBLearnAlg ( savedir = None , seed = <NUM_LIT:0> , <EOL> algParams = algP , outputParams = dict ( ) ) </s>
