def METHOD_NAME(self):
    body_str = '{"vswitch": {"name": "", "rdev": "1234"}}'
    self.req.body = body_str
    self.assertRaises(exception.ValidationError, vswitch.vswitch_create,
                      self.req)