mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
removed another related tests for romoved check
This commit is contained in:
parent
5e33d90bf4
commit
88ff1e4c09
1 changed files with 0 additions and 6 deletions
|
@ -22,12 +22,6 @@ class TimezoneTests(SimpleTestCase):
|
|||
self.assertTrue(timezone.is_naive(timezone.now()))
|
||||
|
||||
def test_localdate(self):
|
||||
naive = datetime.datetime(2015, 1, 1, 0, 0, 1)
|
||||
with self.assertRaisesMessage(
|
||||
ValueError, "localtime() cannot be applied to a naive datetime"
|
||||
):
|
||||
timezone.localdate(naive, timezone=EAT)
|
||||
|
||||
aware = datetime.datetime(2015, 1, 1, 0, 0, 1, tzinfo=ICT)
|
||||
self.assertEqual(
|
||||
timezone.localdate(aware, timezone=EAT), datetime.date(2014, 12, 31)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue