コード例 #1
0
    def test_starting_point_cant_set_invalid_value_later(self):
        f = FileList(ordering='datetime_uploaded')

        with self.assertRaisesRegexp(
                ValueError, 'The starting_point must be a datetime'):
            f.starting_point = 'string'
コード例 #2
0
    def test_starting_point_cant_set_invalid_value_later(self):
        f = FileList(ordering='datetime_uploaded')

        with self.assertRaisesRegexp(ValueError,
                                     'The starting_point must be a datetime'):
            f.starting_point = 'string'