def testGetApiConfigsWithIncorrectRevision(self):
   # TODO: there currently exists a bug in protorpc where non-unicode strings
   #     aren't validated correctly and so their values aren't set correctly.
   #     Remove 'u' this once that's fixed. This shouldn't affect production.
   request = api_backend.GetApiConfigsRequest(appRevision=u'2')
   self.assertRaises(
       api_exceptions.BadRequestException, self.service.getApiConfigs, request)
 def testGetApiConfigsWithCorrectRevision(self):
   # TODO: there currently exists a bug in protorpc where non-unicode strings
   #     aren't validated correctly and so their values aren't set correctly.
   #     Remove 'u' this once that's fixed. This shouldn't affect production.
   request = api_backend.GetApiConfigsRequest(appRevision=u'1')
   self.assertEqual([], self.service.getApiConfigs(request).items)
 def testGetApiConfigsWithIncorrectRevision(self):
     request = api_backend.GetApiConfigsRequest(appRevision='2')
     self.assertRaises(api_exceptions.BadRequestException,
                       self.service.getApiConfigs, request)
 def testGetApiConfigsWithEmptyRequest(self):
   request = api_backend.GetApiConfigsRequest()
   self.assertEqual([], self.service.getApiConfigs(request).items)
 def testGetApiConfigsWithCorrectRevision(self):
     request = api_backend.GetApiConfigsRequest(appRevision='1')
     self.assertEqual([], self.service.getApiConfigs(request).items)