devtools/test/unittest_testlib.py
changeset 10957 2fdf67ef3341
parent 10646 45671fb330f5
parent 10792 daef7ce08fea
child 10960 9e64fddebc89
equal deleted inserted replaced
10895:90c55e27aa87 10957:2fdf67ef3341
    72         self.assertEqual(len(result.errors), 0)
    72         self.assertEqual(len(result.errors), 0)
    73         self.assertEqual(len(result.failures), 1)
    73         self.assertEqual(len(result.failures), 1)
    74         clean_repo_test_cls(MyWebTest)
    74         clean_repo_test_cls(MyWebTest)
    75 
    75 
    76 
    76 
       
    77 class RepoInstancesConsistencyTC(CubicWebTC):
       
    78     test_db_id = 'RepoInstancesConsistencyTC'
       
    79 
       
    80     def pre_setup_database(self, cnx, config):
       
    81         self.assertIs(cnx.repo, config.repository())
       
    82 
       
    83     def test_pre_setup(self):
       
    84         pass
       
    85 
       
    86 
    77 HTML_PAGE = u"""<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    87 HTML_PAGE = u"""<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    78 <html>
    88 <html>
    79   <head><title>need a title</title></head>
    89   <head><title>need a title</title></head>
    80   <body>
    90   <body>
    81     <h1>Hello World !</h1>
    91     <h1>Hello World !</h1>