Beispiel #1
0
 def test_str_lstrip(self):
     """Check matches the python string lstrip method."""
     self._test_method("lstrip")
     s = Seq(" ACGT ")
     m = MutableSeq(" ACGT ")
     self.assertEqual(s.lstrip(), "ACGT ")
     self.assertRaises(TypeError, s.lstrip, 7)
     self.assertEqual(s, " ACGT ")
     self.assertEqual(m.lstrip(), "ACGT ")
     self.assertRaises(TypeError, m.lstrip, 7)
     self.assertEqual(m, " ACGT ")
     self.assertEqual(m.lstrip(inplace=True), "ACGT ")
     self.assertEqual(m, "ACGT ")