Lines Matching refs:atest

320         self.atest = topic_common.atest()
321 self.atest.afe = rpc.afe_comm()
327 self.atest = None
332 self.atest.kill_on_failure = True
336 self.atest.invalid_arg, 'This is bad')
344 self.atest.invalid_arg('This is sort of ok')
350 self.atest.failure('This is partly bad', item='item0',
352 err = self.atest.failed['something important']
357 self.atest.failure('This is partly bad', item='item0',
359 self.atest.failure('This is really bad', item='item0',
361 err = self.atest.failed['something important']
364 err = self.atest.failed['something really important']
370 self.atest.failure('This is partly bad', item='item0',
372 self.atest.failure('This is really bad', item='item1',
374 errs = self.atest.failed['something important']
382 self.atest.failure('This is partly bad', item='item0',
384 self.atest.failure('This is really bad', item='item0',
386 self.atest.failure('This is really bad', item='item1',
388 errs = self.atest.failed['something important']
394 errs = self.atest.failed['something really important']
402 self.atest.failure('This is partly bad', item='item0',
404 self.atest.failure('This is really bad', item='item0',
406 self.atest.failure('This is partly bad', item='item1',
408 errs = self.atest.failed['something important']
413 errs = self.atest.failed['something really important']
421 self.atest.kill_on_failure = True
425 self.atest.failure, 'This is partly bad')
432 self.atest.kill_on_failure = True
436 self.atest.failure, 'This is partly bad',
444 self.atest.failure('This is partly bad', item='item0',
446 self.atest.failure('This is partly bad', item='item1',
449 self.atest.show_all_failures()
459 self.atest.parser.add_option('-M', '--mlist', type='string')
463 (options, leftover) = self.atest.parse([item_info])
464 self.assertEqualNoOrder(self.atest.hosts,
483 self.atest.parser.add_option('-M', '--mlist', type='string')
486 (options, leftover) = self.atest.parse([item_info])
487 self.assertEqualNoOrder(self.atest.hosts,
508 self.atest.parser.add_option('-M', '--mlist', type='string')
509 self.atest.parser.add_option('-U', '--ulist', type='string')
510 self.atest.parser.add_option('-u', '--user', type='string')
518 (options, leftover) = self.atest.parse([host_info, user_info])
519 self.assertEqualNoOrder(self.atest.hosts,
521 self.assertEqualNoOrder(self.atest.users,
546 self.atest.parser.add_option('-M', '--mlist', type='string')
547 self.atest.parser.add_option('-U', '--ulist', type='string')
548 self.atest.parser.add_option('-u', '--user', type='string')
555 (options, leftover) = self.atest.parse([host_info, user_info])
557 self.assertEqualNoOrder(self.atest.hosts,
559 self.assertEqualNoOrder(self.atest.users,
584 self.atest.parser.add_option('-M', '--mlist', type='string')
585 self.atest.parser.add_option('-U', '--ulist', type='string')
586 self.atest.parser.add_option('-u', '--user', type='string')
593 (options, leftover) = self.atest.parse([host_info, user_info])
594 self.assertEqualNoOrder(self.atest.hosts,
596 self.assertEqualNoOrder(self.atest.users,
620 self.atest.parser.add_option('-M', '--mlist', type='string')
621 self.atest.parser.add_option('-U', '--ulist', type='string')
622 self.atest.parser.add_option('-u', '--user', type='string')
629 (options, leftover) = self.atest.parse([host_info, user_info])
630 self.assertEqualNoOrder(self.atest.hosts,
632 self.assertEqualNoOrder(self.atest.users,
653 self.atest.parser.add_option('-M', '--mlist', type='string')
654 self.atest.parser.add_option('-U', '--ulist', type='string')
655 self.atest.parser.add_option('-u', '--user', type='string')
660 (options, leftover) = self.atest.parse([host_info, user_info])
661 self.assertEqualNoOrder(self.atest.hosts,
663 self.assertEqualNoOrder(self.atest.users,
682 self.atest.parser.add_option('-u', '--user', type='string')
683 self.atest.parser.add_option('-a', '--acl', type='string')
688 (options, leftover) = self.atest.parse([user_info, acl_info])
689 self.assertEqualNoOrder(self.atest.acls,
691 self.assertEqualNoOrder(self.atest.users,
708 self.atest.parser.add_option('-u', '--user', type='string')
711 (options, leftover) = self.atest.parse([user_info],
713 self.assertEqualNoOrder(self.atest.users,
729 self.atest.parser.add_option('-u', '--user', type='string')
737 self.atest.parse,
740 self.assertEqualNoOrder(self.atest.users,
743 self.assertEqualNoOrder(self.atest.acls, [])
750 self.god.stub_function(self.atest.parser, 'error')
751 self.atest.parser.error.expect_call('no such option: --unknown').and_return(None)
752 self.atest.parse()
760 (options, leftover) = self.atest.parse()
772 self.atest.afe = rpc.afe_comm('http://does_not_exist')
777 self.atest.execute_rpc, 'myop')
810 self.__test_print_fields(self.atest.print_fields_std,
849 self.__test_print_fields(self.atest.print_fields_parse,
883 self.__test_print_fields(self.atest.print_table_std,
900 self.__test_print_fields(self.atest.print_table_parse,
912 self.atest.parse_delim = '?'
920 self.__test_print_fields(self.atest.print_table_parse,
944 self.__test_print_fields(self.atest.print_table_std,
972 self.__test_print_fields(self.atest.print_by_ids_std,
986 self.__test_print_fields(self.atest.print_by_ids_parse,