示例#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)