def test_create_single_chassis_with_nodes(self):
     params = {'nodes': ['some nodes here']}
     self.client.chassis.create.return_value = mock.Mock(uuid='uuid')
     self.assertEqual(
         ('uuid', None),
         create_resources.create_single_chassis(self.client, **params))
     self.client.chassis.create.assert_called_once_with()
 def test_create_single_chassis(self):
     self.client.chassis.create.return_value = mock.Mock(uuid='uuid')
     self.assertEqual(
         ('uuid', None),
         create_resources.create_single_chassis(self.client)
     )
     self.client.chassis.create.assert_called_once_with()
 def test_create_single_chassis(self):
     self.client.chassis.create.return_value = mock.Mock(uuid='uuid')
     self.assertEqual(
         ('uuid', None),
         create_resources.create_single_chassis(self.client)
     )
     self.client.chassis.create.assert_called_once_with()
 def test_create_single_chassis_with_nodes(self):
     params = {'nodes': ['some nodes here']}
     self.client.chassis.create.return_value = mock.Mock(uuid='uuid')
     self.assertEqual(
         ('uuid', None),
         create_resources.create_single_chassis(self.client, **params)
     )
     self.client.chassis.create.assert_called_once_with()