Lines Matching refs:Loader
635 class Loader(object): class
641 program.testLoader = Loader()
643 self.assertEqual(Loader.args, [('.', 'test*.py', None)])
648 class Loader(object): class
654 program._do_discovery(['-v'], Loader=Loader)
657 self.assertEqual(Loader.args, [('.', 'test*.py', None)])
659 Loader.args = []
661 program._do_discovery(['--verbose'], Loader=Loader)
663 self.assertEqual(Loader.args, [('.', 'test*.py', None)])
665 Loader.args = []
667 program._do_discovery([], Loader=Loader)
669 self.assertEqual(Loader.args, [('.', 'test*.py', None)])
671 Loader.args = []
673 program._do_discovery(['fish'], Loader=Loader)
675 self.assertEqual(Loader.args, [('fish', 'test*.py', None)])
677 Loader.args = []
679 program._do_discovery(['fish', 'eggs'], Loader=Loader)
681 self.assertEqual(Loader.args, [('fish', 'eggs', None)])
683 Loader.args = []
685 program._do_discovery(['fish', 'eggs', 'ham'], Loader=Loader)
687 self.assertEqual(Loader.args, [('fish', 'eggs', 'ham')])
689 Loader.args = []
691 program._do_discovery(['-s', 'fish'], Loader=Loader)
693 self.assertEqual(Loader.args, [('fish', 'test*.py', None)])
695 Loader.args = []
697 program._do_discovery(['-t', 'fish'], Loader=Loader)
699 self.assertEqual(Loader.args, [('.', 'test*.py', 'fish')])
701 Loader.args = []
703 program._do_discovery(['-p', 'fish'], Loader=Loader)
705 self.assertEqual(Loader.args, [('.', 'fish', None)])
709 Loader.args = []
712 Loader=Loader)
714 self.assertEqual(Loader.args, [('fish', 'eggs', None)])