def test_upper_and_lower(self):
     contact.insert_one({
         'email': '*****@*****.**',
         'rules': 'menor',
         'value': float(1700),
         'sent': False
     })
     all_contacts = getting_contacts_notification({'last': 1600})
     self.assertEqual(len(all_contacts), 2)
 def test_no_resend_mail(self):
     contact.update_many({'sent': False}, {'$set': {'sent': True}})
     all_contacts = getting_contacts_notification({'last': 1600})
     self.assertEqual(len(all_contacts), 0)
 def test_upper(self):
     all_contacts = getting_contacts_notification({'last': 1600})
     self.assertEqual(len(all_contacts), 1)