def test_build_encoding_from_args(self): args = self.parser.parse_args( '--device HackRF --frequency 50e3 --sample-rate 2.5e6 -e "Test,Invert"' .split()) encoding = urh_cli.build_encoding_from_args(args) self.assertEqual(len(encoding.chain), 2)
def test_build_encoding_from_args(self): args = self.parser.parse_args('--device HackRF --frequency 50e3 --sample-rate 2.5e6 -e "Test,Invert"'.split()) encoding = urh_cli.build_encoding_from_args(args) self.assertEqual(len(encoding.chain), 2)