def login(self, user="<STR_LIT>"):
if user not in (["<STR_LIT>", "<STR_LIT>"]):<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>self.open("<STR_LIT>")<EOL>self.update_text("<STR_LIT>", user)<EOL>self.update_text("<STR_LIT>", "<STR_LIT>")<EOL>self.click('<STR_LIT>')<EOL>self.assert_text("<STR_LIT>", "<STR_LIT>")<EOL>self.assert_element("<STR_LIT>")<EOL>
Login to Swag Labs and assert that the login was successful.