def test_bracket(self): self.assertEqual(('[Am]azon', 'Mi[cro]soft', 'Goog[le]'), bracket(self.words, self.symbols)) self.assertEqual(('Amazon', 'Microsoft', 'Google'), bracket(self.words, ['thisshouldnotmatch'])) self.assertEqual(('Amazon', 'M[i]crosoft', 'Google'), bracket(self.words, ['i', 'i']))
def test_bracket(self): self.assertEqual(("[Am]azon", "Mi[cro]soft", "Goog[le]"), bracket(self.words, self.symbols)) self.assertEqual( ("Amazon", "Microsoft", "Google"), bracket(self.words, ["thisshouldnotmatch"]), ) self.assertEqual(("Amazon", "M[i]crosoft", "Google"), bracket(self.words, ["i", "i"]))
def test_bracket(self): self.assertEqual(('[Am]azon', 'Mi[cro]soft', 'Goog[le]'), bracket(self.words, self.symbols))