def test_str_methods_still_work(self): # not going to test every single one. a smattering will do. secret = SecureString("more than just a dream") self.assertFalse(secret.isupper()) self.assertTrue(secret.islower()) self.assertTrue(secret.startswith('more')) self.assertEqual(secret.find('than'), 5)
def test_str_methods_still_work(self): # not going to test every single one. a smattering will do. secret = SecureString("more than just a dream") self.assertFalse(secret.isupper()) self.assertTrue(secret.islower()) self.assertTrue(secret.startswith('more')) assert(secret.find('than') == 5)