def test_process_args_with_equals(self, nic_values_to_args): # prepare args = [ '--size=10G', '--nic=ipaddr=192.168.122.10;hwaddr=ab:cd:ef:gh:ij', '--install=wget', ] # run final_args = nic.process_args(args, '/tmp/dir') # verify self.assertEqual([ '--size=10G', '--upload', '/one:/two', '--install=wget', ], final_args) nic_values_to_args.assert_called_with( 'ipaddr=192.168.122.10;hwaddr=ab:cd:ef:gh:ij', '/tmp/dir')
def _process_args(args, tmp_dir): processed = nic.process_args(args, tmp_dir) return processed