コード例 #1
0
ファイル: test_oc-P5.py プロジェクト: oliviernes/oc_P5
def test_connexion2():
    DB_CONF["user"] = "******"
    DB_CONF["db"] = "foobar"

    with pytest.raises(AssertionError):
        assert (Db.__init__(Db) == "1044 (42000): Access denied for user \
        'off_user'@'localhost' to database 'foobar'")
コード例 #2
0
ファイル: test_oc-P5.py プロジェクト: oliviernes/oc_P5
def test_connexion1():
    DB_CONF["user"] = "******"

    with pytest.raises(AssertionError):
        assert (Db.__init__(Db) == "Something is wrong with your user name\
         or password")