Пример #1
0
 def test_remove_pos_arg_placeholders_with_query(self):
     self.assertEqual('group list', remove_pos_arg_placeholders('group list --query "[].{Name:name, Location:location}" --output table'))
Пример #2
0
 def test_remove_pos_arg_placeholders_with_pos_arg(self):
     self.assertEqual('network dns', remove_pos_arg_placeholders('network dns {{ arg_1 }}'))
Пример #3
0
 def test_remove_pos_arg_placeholders_with_args(self):
     self.assertEqual('vm create', remove_pos_arg_placeholders('vm create -g test -n test'))
Пример #4
0
 def test_remove_pos_arg_placeholders(self):
     self.assertEqual('webapp create', remove_pos_arg_placeholders('webapp create'))
Пример #5
0
 def test_remove_pos_arg_placeholders_with_query(self):
     self.assertEqual('group list', remove_pos_arg_placeholders('group list --query "[].{Name:name, Location:location}" --output table'))
Пример #6
0
 def test_remove_pos_arg_placeholders_with_args(self):
     self.assertEqual('vm create', remove_pos_arg_placeholders('vm create -g test -n test'))
Пример #7
0
 def test_remove_pos_arg_placeholders_with_pos_arg(self):
     self.assertEqual('network dns', remove_pos_arg_placeholders('network dns {{ arg_1 }}'))
Пример #8
0
 def test_remove_pos_arg_placeholders(self):
     self.assertEqual('webapp create', remove_pos_arg_placeholders('webapp create'))