def label_address(self) -> str: label_address = self.basic_address if len(label_address) <= 60: label_address = rreplace(label_address, ',', '<br/>', count=1) return label_address
def label_address(self) -> str: label_address = self.basic_address if len(label_address) <= 55: label_address = rreplace(label_address, ",", "<br/>", count=1) return label_address
def label_address(self) -> str: label_address = self.basic_address if len(label_address) <= 60: label_address = rreplace(label_address, ',', '<br/>', count=1) return label_address
def test_rreplace(): phrase = 'foo bar baz qux' assert rreplace(phrase, ' ', '-', 1) == 'foo bar baz-qux' assert rreplace(phrase, ' ', '-', 2) == 'foo bar-baz-qux' assert rreplace(phrase, ' ', '-', 3) == 'foo-bar-baz-qux' assert rreplace(phrase, ' ', '-') == 'foo-bar-baz-qux'
def test_rreplace(): phrase = 'foo bar baz qux' assert rreplace(phrase, ' ', '-', 1) == 'foo bar baz-qux' assert rreplace(phrase, ' ', '-', 2) == 'foo bar-baz-qux' assert rreplace(phrase, ' ', '-', 3) == 'foo-bar-baz-qux' assert rreplace(phrase, ' ', '-') == 'foo-bar-baz-qux'
def test_rreplace(): phrase = "foo bar baz qux" assert rreplace(phrase, " ", "-", 1) == "foo bar baz-qux" assert rreplace(phrase, " ", "-", 2) == "foo bar-baz-qux" assert rreplace(phrase, " ", "-", 3) == "foo-bar-baz-qux" assert rreplace(phrase, " ", "-") == "foo-bar-baz-qux"