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