Example #1
0
 def test_endswith_str_long_value(self):
     p = inspector.Endswith(
         "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
     )
     eq_(
         str(p),
         "arg.endswith('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...')")
Example #2
0
 def test_endswith_str(self):
     p = inspector.Endswith("_ending")
     eq_(str(p), "arg.endswith('_ending')")
Example #3
0
 def test_endswith_unicode(self):
     p = inspector.Endswith("Ivan_Krsti\u0107")
     eq_(repr(p), "arg.endswith(%s)" % repr('Ivan_Krsti\u0107'))