def test_date_filter(self):
     with application.app_context():
         total_devices = total_devices_registred(
             min_date=(datetime.now() + timedelta(days=-1)))
         assert total_devices == 1
 def test_date_filter(self):
     with application.app_context():
         total_devices = total_devices_registred(min_date=(datetime.now() + timedelta(days=-1)))
         assert total_devices == 1
 def test_two_devices(self):
     with application.app_context():
         total_devices = total_devices_registred()
         assert total_devices == 2
 def test_two_devices(self):
     with application.app_context():
         total_devices = total_devices_registred()
         assert total_devices == 2