<s> import unittest <EOL> import numpy as np <EOL> import deltasigma as ds <EOL> import pkg_resources <EOL> import scipy . io <EOL> from os . path import join <EOL> class TestDSOptZeros ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> file_path = join ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> fname = pkg_resources . resource_filename ( __name__ , file_path ) <EOL> self . res = scipy . io . loadmat ( fname ) [ '<STR_LIT>' ] <EOL> def test_opt_zeros ( self ) : <EOL> """<STR_LIT>""" <EOL> ns = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> for i , n in enumerate ( ns ) : <EOL> for opt in ( <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT:2> ) : <EOL> self . assertTrue ( <EOL> np . allclose ( <EOL> self . res [ n ] [ <NUM_LIT:0> ] [ <NUM_LIT:0> ] [ : , opt ] , ds . ds_optzeros ( i + <NUM_LIT:1> , opt ) , <EOL> atol = <NUM_LIT> , rtol = <NUM_LIT> ) ) </s>
