Exemple #1
0
 def assertError(self, code):
     if get_version() >= '1.7':
         for er in check_env():
             if er.id == code:
                 return
         else:
             raise AssertionError('{} not happens'.format(code))
     else:
         self.assertRaises(ImproperlyConfigured, lambda: check_env())
 def assertError(self, code):
     if get_version() >= '1.7':
         for er in check_env():
             if er.id == code:
                 return
         else:
             raise AssertionError('{} not happens'.format(code))
     else:
         self.assertRaises(ImproperlyConfigured, lambda: check_env())
Exemple #3
0
 def test_all_correctly(self):
     self.assertFalse(bool(check_env()))
 def test_all_correctly(self):
     self.assertFalse(bool(check_env()))