Beispiel #1
0
 def test_setString(self):
     string = "HW"
     regex = Regex(string)
     expected = "HelloWorld"
     regex.setString(expected)
     actual = regex.getString()
     self.assertEqual(actual, expected)
Beispiel #2
0
 def test_getString(self):
     string = "HW"
     regex = Regex(string)
     actual = regex.getString()
     expected = string
     self.assertEqual(actual, expected)