Пример #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