'Testing when both all objects are empty'

@mock.patch('oc_objectvalidator.locate_oc_binary')
@mock.patch('oc_objectvalidator.Utils.create_tmpfile_copy')
@mock.patch('oc_objectvalidator.OCObjectValidator._run')
def test_no_data(self, mock_cmd, mock_tmpfile_copy, mock_oc_binary):

    params = {'kubeconfig': '/etc/origin/master/admin.kubeconfig'}
    empty = '{\n                "apiVersion":    "v1",\n                "items":    [],\n                "kind":    "List",\n                "metadata":    {},\n                "resourceVersion":    "",\n                "selfLink":    ""\n}'
    mock_cmd.side_effect = [(0, empty, ''), (0, empty, ''), (0, empty, '')]
    mock_tmpfile_copy.side_effect = ['/tmp/mocked_kubeconfig']
    mock_oc_binary.side_effect = ['oc']
    results = OCObjectValidator.run_ansible(params)
    self.assertNotIn('failed', results)
    self.assertEqual(results['msg'], 'All    objects    are    valid.')
    mock_cmd.assert_has_calls([mock.call(['oc', 'get', 'hostsubnet', '-o', 'json', '-n', 'default'], None), mock.call(['oc', 'get', 'netnamespace', '-o', 'json', '-n', 'default'], None), mock.call(['oc', 'get', 'namespace', '-o', 'json', '-n', 'default'], None)])
