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