Exemplo n.º 1
0
 def test_run_with_args(self, mock_inserter):
     run('1002')
     self.assertTrue(mock_inserter.called_with, '1002')
Exemplo n.º 2
0
 def test_run_no_args(self, mock_inserter):
     """Check that passing no args will process all test regs."""
     mock_inserter.return_value = 'linked Regdown'
     run()
     self.assertEqual(mock_inserter.call_count, 4)  # 4 regs in fixture
Exemplo n.º 3
0
 def test_run_with_section(self, mock_get_url):
     mock_get_url.return_value = '/mock_relative/url/'
     run('1002')
     self.assertEqual(mock_get_url.call_count, 97)  # 97 refs in fixture
Exemplo n.º 4
0
 def test_run_with_args(self, mock_inserter):
     run('1002')
     self.assertTrue(mock_inserter.called_with, '1002')
Exemplo n.º 5
0
 def test_run_no_args(self, mock_inserter):
     """Check that passing no args will process all test regs."""
     mock_inserter.return_value = 'linked Regdown'
     run()
     self.assertEqual(mock_inserter.call_count, 4)  # 4 regs in fixture
Exemplo n.º 6
0
 def test_run_with_section(self, mock_get_url):
     mock_get_url.return_value = '/mock_relative/url/'
     run('1002')
     self.assertEqual(mock_get_url.call_count, 97)  # 97 refs in fixture