Example #1
0
 def test__minutes_since(self):
     """Test the _minutes_since helper method."""
     an_hour_ago = utc_now() - datetime.timedelta(minutes=60)
     assert 60 == EnkiAPI._minutes_since(an_hour_ago)
Example #2
0
 def test__minutes_since(self):
     """Test the _minutes_since helper method."""
     an_hour_ago = datetime.datetime.utcnow() - datetime.timedelta(
         minutes=60)
     eq_(60, EnkiAPI._minutes_since(an_hour_ago))
Example #3
0
 def test__minutes_since(self):
     """Test the _minutes_since helper method."""
     an_hour_ago = datetime.datetime.utcnow() - datetime.timedelta(
         minutes=60
     )
     eq_(60, EnkiAPI._minutes_since(an_hour_ago))