Skip to content

Commit

Permalink
Add unit test for 'show subinterfaces status --verbose'
Browse files Browse the repository at this point in the history
Signed-off-by: Wenda Ni <[email protected]>
  • Loading branch information
wendani committed Nov 4, 2019
1 parent 9969e55 commit bc946e0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sonic-utilities-tests/intfutil_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ def test_subintf_status(self):
print >> sys.stderr, output
self.assertEqual(output.strip(), expected_output)

# Test 'show subinterfaces status --verbose'
def test_subintf_status_verbose(self):
result = self.runner.invoke(show.cli.commands["subinterfaces"].commands["status"], ["--verbose"])
print >> sys.stderr, result.output
expected_output = "Command: intfutil status subport"
self.assertEqual(result.output.split('\n')[0], expected_output)

assert(0)

@classmethod
Expand Down

0 comments on commit bc946e0

Please sign in to comment.