コード例 #1
0
 def test_date_filter(self):
     with application.app_context():
         total_sims = total_sims_registered(min_date=(datetime.now() +
                                                      timedelta(days=-1)))
         assert total_sims == 2
コード例 #2
0
 def test_date_filter(self):
     with application.app_context():
         total_sims = total_sims_registered(min_date=(datetime.now() + timedelta(days=-1)))
         assert total_sims == 2
コード例 #3
0
 def test_two_devices(self):
     with application.app_context():
         total_sims = total_sims_registered()
         assert total_sims == 3
コード例 #4
0
 def test_two_devices(self):
     with application.app_context():
         total_sims = total_sims_registered()
         assert total_sims == 3