Пример #1
0
 def test_build_suite_from_stdin_dash(self, load_suite_from_stdin):
     argv = ["/bin/fake", "-"]
     args = parse_args(argv)
     expected_suite = mock.Mock()
     load_suite_from_stdin.return_value = expected_suite
     suite = build_suite(args)
     self.assertEqual(expected_suite, suite)
Пример #2
0
 def test_build_suite_from_stdin_dash(self, load_suite_from_stdin):
     argv = ["/bin/fake", "-"]
     args = parse_args(argv)
     expected_suite = mock.Mock()
     load_suite_from_stdin.return_value = expected_suite
     suite = build_suite(args)
     self.assertEqual(expected_suite, suite)
Пример #3
0
 def test_build_suite_from_stdin(self, load_suite_from_stdin):
     args = mock.Mock()
     args.files = []
     expected_suite = mock.Mock()
     load_suite_from_stdin.return_value = expected_suite
     suite = build_suite(args)
     self.assertEqual(expected_suite, suite)
Пример #4
0
 def test_build_suite_from_stdin(self, load_suite_from_stdin):
     args = mock.Mock()
     args.files = []
     expected_suite = mock.Mock()
     load_suite_from_stdin.return_value = expected_suite
     suite = build_suite(args)
     self.assertEqual(expected_suite, suite)