Beispiel #1
0
 def test_startswith_str_long_value(self):
     p = inspector.Startswith(
         "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
     )
     eq_(
         str(p),
         "arg.startswith('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...')"
     )
Beispiel #2
0
 def test_startswith_str(self):
     p = inspector.Startswith("_start")
     eq_(str(p), "arg.startswith('_start')")
Beispiel #3
0
 def test_startswith_unicode(self):
     p = inspector.Startswith("Ivan_Krsti\u0107")
     eq_(repr(p), "arg.startswith(%s)" % repr('Ivan_Krsti\u0107'))