<s> from mocktest import * <EOL> from pyqcy import * <EOL> import neat . locals . overload . mhod . l_2_states as l <EOL> import logging <EOL> logging . disable ( logging . CRITICAL ) <EOL> class L2States ( TestCase ) : <EOL> def test_l0 ( self ) : <EOL> p = [ [ <NUM_LIT> , <NUM_LIT> ] , <EOL> [ <NUM_LIT> , <NUM_LIT:0.1> ] ] <EOL> p0 = [ <NUM_LIT:1> , <NUM_LIT:0> ] <EOL> self . assertAlmostEqual ( l . l0 ( p0 , p , [ <NUM_LIT> , <NUM_LIT> ] ) , <NUM_LIT> , <NUM_LIT:3> ) <EOL> self . assertAlmostEqual ( l . l0 ( p0 , p , [ <NUM_LIT> , <NUM_LIT> ] ) , <NUM_LIT> , <NUM_LIT:3> ) <EOL> def test_l1 ( self ) : <EOL> p = [ [ <NUM_LIT> , <NUM_LIT> ] , <EOL> [ <NUM_LIT> , <NUM_LIT:0.1> ] ] <EOL> p0 = [ <NUM_LIT:1> , <NUM_LIT:0> ] <EOL> self . assertAlmostEqual ( l . l1 ( p0 , p , [ <NUM_LIT> , <NUM_LIT> ] ) , <NUM_LIT> , <NUM_LIT:3> ) <EOL> self . assertAlmostEqual ( l . l1 ( p0 , p , [ <NUM_LIT> , <NUM_LIT> ] ) , <NUM_LIT> , <NUM_LIT:3> ) </s>
