def test_list_networkprofile_known_option_after_unknown(self):
     """List networkprofile: -- --tags a b --request-format xml."""
     resources = 'network_profiles'
     cmd = networkprofile.ListNetworkProfile(test_cli20.MyApp(sys.stdout),
                                             None)
     contents = [{'name': 'myname', 'segment_type': 'vlan'}]
     self._test_list_resources(resources, cmd, tags=['a', 'b'],
                               response_contents=contents)
 def test_list_networkprofile_detail(self):
     """List networkprofile: -D."""
     resources = 'network_profiles'
     cmd = networkprofile.ListNetworkProfile(test_cli20.MyApp(sys.stdout),
                                             None)
     contents = [{'name': 'myname', 'segment_type': 'vlan'}]
     self._test_list_resources(resources, cmd, True,
                               response_contents=contents)
 def test_list_networkprofile_fields(self):
     """List networkprofile: --fields a --fields b -- --fields c d."""
     resources = 'network_profiles'
     cmd = networkprofile.ListNetworkProfile(test_cli20.MyApp(sys.stdout),
                                             None)
     contents = [{'name': 'myname', 'segment_type': 'vlan'}]
     self._test_list_resources(resources, cmd,
                               fields_1=['a', 'b'], fields_2=['c', 'd'],
                               response_contents=contents)