示例#1
0
 def test_check_database_handles_exception(self):
     response = checks._check_database('foo')
     self.assertFalse(response['foo']['ok'])
     self.assertEqual(response['foo']['error'], "The connection foo doesn't exist")
示例#2
0
 def test_check_database_handles_exception(self):
     response = checks._check_database('foo')
     self.assertFalse(response['foo']['ok'])
     self.assertEqual(response['foo']['error'],
                      "The connection foo doesn't exist")