Ejemplo n.º 1
0
    def test_init(self):
        """Tests the Database init method"""

        con = UriDatabaseConnection(user='******', host='host')

        self.assertEqual(
            'db',
            database.Database(con, 'db').name
        )
Ejemplo n.º 2
0
    def test_autocomplete(self):
        """Tests the Database autocomplete method"""

        con = UriDatabaseConnection(user='******', host='host')

        self.assertEqual(
            'user@host/db/',
            database.Database(
                con,
                'db').autocomplete()
        )