test/unittest_dbapi.py
changeset 9469 032825bbacab
parent 9068 86dcc29740e0
child 9818 e3d2012adcd0
--- a/test/unittest_dbapi.py	Thu Jan 23 12:32:16 2014 +0100
+++ b/test/unittest_dbapi.py	Thu Jan 23 13:47:28 2014 +0100
@@ -49,9 +49,12 @@
     def test_api(self):
         cnx = _repo_connect(self.repo, login='anon', password='anon')
         self.assertEqual(cnx.user(None).login, 'anon')
+        self.assertEqual({'type': u'CWSource', 'source': u'system', 'extid': None},
+                         cnx.entity_metas(1))
         self.assertEqual(cnx.describe(1), (u'CWSource', u'system', None))
         cnx.close()
         self.assertRaises(ProgrammingError, cnx.user, None)
+        self.assertRaises(ProgrammingError, cnx.entity_metas, 1)
         self.assertRaises(ProgrammingError, cnx.describe, 1)
 
     def test_shared_data_api(self):