[schemaserial] fix detection of CWComputedRType table, closes #4901150
importhttplibfromlogilab.common.testlibimportTagsfromcubicweb.devtools.webtestimportCubicWebTestTCclassCWTTC(CubicWebTestTC):deftest_response(self):response=self.webapp.get('/')self.assertEqual(200,response.status_int)deftest_base_url(self):ifself.config['base-url']notinself.webapp.get('/').text:self.fail('no mention of base url in retrieved page')classCWTIdentTC(CubicWebTestTC):test_db_id='webtest-ident'anonymous_allowed=Falsetags=CubicWebTestTC.tags|Tags(('auth',))deftest_reponse_denied(self):res=self.webapp.get('/',expect_errors=True)self.assertEqual(httplib.FORBIDDEN,res.status_int)deftest_login(self):res=self.webapp.get('/',expect_errors=True)self.assertEqual(httplib.FORBIDDEN,res.status_int)self.login(self.admlogin,self.admpassword)res=self.webapp.get('/')self.assertEqual(httplib.OK,res.status_int)self.logout()res=self.webapp.get('/',expect_errors=True)self.assertEqual(httplib.FORBIDDEN,res.status_int)if__name__=='__main__':fromlogilab.common.testlibimportunittest_mainunittest_main()