|
@@ -149,3 +149,12 @@ class CLITests(unittest.TestCase):
|
|
|
tags = self.tester.cli.get_tags(reader=lambda: u'looking glass')
|
|
|
node.tags = tags
|
|
|
self.tester.cli._db.addnodes([node])
|
|
|
+ self.tester.cli._db._cur.execute(
|
|
|
+ "SELECT ID FROM NODES ORDER BY ID ASC", [])
|
|
|
+ rows = self.tester.cli._db._cur.fetchall()
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ self.assertEqual(len(rows), 2)
|