def test_fallback_to_db(self):
    ldap_access.CACHED_LDAP_CONN = LdapTestConnection()

    client = make_logged_in_client(username=self.test_username, password="test")
    client.get('/accounts/logout')
    user = User.objects.get(username=self.test_username)

    response = self.c.post('/accounts/login/', dict(username=self.test_username, password="foo"))
    assert_equal(302, response.status_code, "Expected ok redirect status.")
    assert_true(self.fs.exists(self.test_username % "/user/%s"))
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/auth/views_test.py/TestMultipleBackendLogin.test_fallback_to_db/swapped operands of `%`