Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/t/o/tokyo-python-0.7.0/test/test_dbm.py   tokyo-python(Download)
    def test_open_r(self):
        self.assertRaises(tdbm.error, self._open, "r")
        self._open("c")
        self._add_records()
        self.assertEqual(len(self.db), 2)
    def test_open_w(self):
        self.assertRaises(tdbm.error, self._open, "w")
        self._open("c")
        self._add_records()
        self.assertEqual(len(self.db), 2)
    def test_open_c(self):
        self._open("c")
        self._add_records()
        self.assertEqual(len(self.db), 2)
        self.db.close()
    def test_open_n(self):
        self._open("c")
        self._add_records()
        self.assertEqual(len(self.db), 2)
        self.db.close()