Example #1
0
 def test_check_datetime_now_noqa(self):
     self.assertEqual(
         0,
         len(list(checks.check_datetime_now("datetime.now()  # noqa",
                                            True))))
Example #2
0
 def test_check_datetime_now(self):
     self.assertEqual(
         1, len(list(checks.check_datetime_now("datetime.now", False))))
     self.assertEqual(
         0, len(list(checks.check_datetime_now("timeutils.utcnow", False))))