示例#1
0
 def __str__(self):
     return repr_escape(self.__unicode__())
示例#2
0
def test_repr_escape_py2(input, expected):
    assert repr_escape(input) == expected
示例#3
0
 def __repr__(self):
     return '<Job (id=%s name=%s)>' % (repr_escape(
         self.id), repr_escape(self.name))
示例#4
0
 def __str__(self):
     return '%s (trigger: %s, next run at: %s)' % (repr_escape(self.name), repr_escape(str(self.trigger)),
                                                   datetime_repr(self.next_run_time))
示例#5
0
 def __repr__(self):
     return '<Job (id=%s name=%s)>' % (repr_escape(self.id), repr_escape(self.name))
示例#6
0
 def __str__(self):
     return repr_escape(self.__unicode__())
示例#7
0
 def __str__(self):
     return '%s (trigger: %s, next run at: %s)' % (repr_escape(
         self.name), repr_escape(str(
             self.trigger)), datetime_repr(self.next_run_time))
示例#8
0
def test_repr_escape_py2(input, expected):
    assert repr_escape(input) == expected