Пример #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())
Пример #2
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())
Пример #3
0
 def test_all_correctly(self):
     self.assertFalse(bool(check_env()))
Пример #4
0
 def test_all_correctly(self):
     self.assertFalse(bool(check_env()))