def test_append_a(self): mystr = BuildStr(1, 2, 3) mystr.append('a') self.assertEqual(mystr.string, 'a')
def test_find_3(self): mystr = BuildStr(1, 2, 3) mystr.string = 'bannc' self.assertTrue(mystr.find('bann'))
def test_pop_chars_2(self): mystr = BuildStr('abcdef', 2, 3) self.assertEqual('ef', mystr.pop_chars(4))
def test_find_2(self): mystr = BuildStr(1, 2, 3) mystr.string = 'bannc' self.assertFalse(mystr.find('ab'))