コード例 #1
0
 def test_get_info(self):
     """
     Test that the appropriate "not implemented" exception is raised
     when attempting to execute the .info() method
     """
     ddoc = DesignDocument(self.db, "_design/ddoc001")
     try:
         ddoc.info()
         self.fail("Above statement should raise an Exception")
     except NotImplementedError as err:
         self.assertEqual(str(err), "_info not yet implemented")