def test_serviceWidgetMapperAllFields(self): userService = TestUserService('allfields') box = BlackBox(blackboxTests.apiUrl, userService) service = box.getServices("application")[0] mapper = ServiceWidgetMapper(userService) result = mapper.getWidget(service)
def test_testWithCamping(self): userService = TestUserService('allfields') box = BlackBox("http://mstrong.info/api/views/dnspr.json", userService) services = box.getServices("camping")
def test_singleSearchOnServiceLowercase(self): box = BlackBox(blackboxTests.apiUrl, TestUserService('anonymous')) services = box.getServices("application") self.assertTrue(len(services) == 1)