Пример #1
0
 def test_validate_resource_inputs(self):
     self.assertRaises(CLIError, _validate_resource_inputs, None, None,
                       None, None)
     self.assertRaises(CLIError, _validate_resource_inputs, 'a', None, None,
                       None)
     self.assertRaises(CLIError, _validate_resource_inputs, 'a', 'b', None,
                       None)
     self.assertRaises(CLIError, _validate_resource_inputs, 'a', 'b', 'c',
                       None)
     _validate_resource_inputs('a', 'b', 'c', 'd')
Пример #2
0
 def test_validate_resource_inputs(self):
     self.assertRaises(CLIError, _validate_resource_inputs, None, None, None, None)
     self.assertRaises(CLIError, _validate_resource_inputs, 'a', None, None, None)
     self.assertRaises(CLIError, _validate_resource_inputs, 'a', 'b', None, None)
     self.assertRaises(CLIError, _validate_resource_inputs, 'a', 'b', 'c', None)
     _validate_resource_inputs('a', 'b', 'c', 'd')