summaryrefslogtreecommitdiffstats
path: root/os_net_config/tests/test_cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'os_net_config/tests/test_cli.py')
-rw-r--r--os_net_config/tests/test_cli.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/os_net_config/tests/test_cli.py b/os_net_config/tests/test_cli.py
index 6c13068..609f0ab 100644
--- a/os_net_config/tests/test_cli.py
+++ b/os_net_config/tests/test_cli.py
@@ -70,3 +70,12 @@ class TestCli(base.TestCase):
stdout_yaml, stderr = self.run_cli('ARG0 -d --noop -c %s' % vlan_yaml)
stdout_json, stderr = self.run_cli('ARG0 -d --noop -c %s' % vlan_json)
self.assertEqual(stdout_yaml, stdout_json)
+
+ def test_interface_noop_output(self):
+ interface_yaml = os.path.join(SAMPLE_BASE, 'interface.yaml')
+ interface_json = os.path.join(SAMPLE_BASE, 'interface.json')
+ stdout_yaml, stderr = self.run_cli('ARG0 -d --noop -c %s'
+ % interface_yaml)
+ stdout_json, stderr = self.run_cli('ARG0 -d --noop -c %s'
+ % interface_json)
+ self.assertEqual(stdout_yaml, stdout_json)