瀏覽代碼

add one more test

oz123 11 年之前
父節點
當前提交
f2add434ab
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      pwman/tests/db_tests.py

+ 10 - 0
pwman/tests/db_tests.py

@@ -122,3 +122,13 @@ class CLITests(unittest.TestCase):
         password = self.tester.cli.get_password(None,
                                                 reader=lambda x: 'hatman')
         self.assertEqual(password, 'hatman')
+
+    def test_get_url(self):
+        url = self.tester.cli.get_url(reader=lambda: 'example.com')
+        self.assertEqual(url, 'example.com')
+
+    def test_get_notes(self):
+        pass
+
+    def test_get_tags(self):
+        pass