Пример #1
0
 def test_ns_read_verbose(self, mock_api, mock_pretty_print):
     ns_read("a-namespace", verbose=True)
     mock_api.read_namespace.assert_called_with(name="a-namespace")
     mock_pretty_print.assert_called_once()
Пример #2
0
 def test_ns_read(self, mock_api, mock_pretty_print):
     ns_read("a-namespace")
     mock_api.read_namespace.assert_called_with(name="a-namespace")
     mock_pretty_print.assert_not_called()