<s> """<STR_LIT>""" <EOL> import unittest <EOL> import numpy as np <EOL> import deltasigma as ds <EOL> from scipy . signal import lti <EOL> class Testl1norm ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> zeros = np . array ( ( ) ) <EOL> poles = np . array ( ( <NUM_LIT> , ) ) <EOL> k = <NUM_LIT:1.> <EOL> self . zpk_tuple = zeros , poles , k <EOL> splti = lti ( zeros , poles , k ) <EOL> self . num_den_tuple = ( splti . num , splti . den ) <EOL> self . ABCD_tuple = ( splti . A , splti . B , splti . C , splti . D ) <EOL> self . splti = splti <EOL> def test_l1norm_1 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertTrue ( np . allclose ( ds . l1norm ( self . num_den_tuple ) , <NUM_LIT> , <EOL> rtol = <NUM_LIT> , atol = <NUM_LIT> ) ) <EOL> def test_l1norm_2 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertTrue ( np . allclose ( ds . l1norm ( self . zpk_tuple ) , <NUM_LIT> , <EOL> rtol = <NUM_LIT> , atol = <NUM_LIT> ) ) <EOL> def test_l1norm_3 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertTrue ( np . allclose ( ds . l1norm ( self . ABCD_tuple ) , <NUM_LIT> , <EOL> rtol = <NUM_LIT> , atol = <NUM_LIT> ) ) <EOL> def test_l1norm_4 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertTrue ( np . allclose ( ds . l1norm ( self . splti ) , <NUM_LIT> , <EOL> rtol = <NUM_LIT> , atol = <NUM_LIT> ) ) </s>
