def test_parse_username_without_domain(self): test_username = '******' expected_domain = '.' expected_user = '******' actual_domain, actual_user = HttpCredSSPAuth._parse_username(test_username) assert actual_domain == expected_domain assert actual_user == expected_user
def test_parse_username_with_backslash(self): test_username = '******' expected_domain = 'DOMAIN' expected_user = '******' actual_domain, actual_user = HttpCredSSPAuth._parse_username(test_username) assert actual_domain == expected_domain assert actual_user == expected_user
def test_parse_username_with_at(self): test_username = '******' expected_domain = 'DOMAIN.LOCAL' expected_user = '******' actual_domain, actual_user = HttpCredSSPAuth._parse_username(test_username) assert actual_domain == expected_domain assert actual_user == expected_user