Exemple #1
0
 def test_invalid(self):
     for s in (MISSING_ENABLED, MISSING_TYPE, MISSING_BASE_URL):
         fp = StringIO(s)
         config = Config(fp)
         for source_id, descriptor in config.items():
             self.assertFalse(is_valid(source_id, descriptor))
Exemple #2
0
 def test_invalid(self):
     for s in (MISSING_ENABLED, MISSING_TYPE, MISSING_BASE_URL):
         fp = StringIO(s)
         config = Config(fp)
         for source_id, descriptor in config.items():
             self.assertFalse(is_valid(source_id, descriptor))
Exemple #3
0
 def test_valid(self):
     fp = StringIO(VALID)
     config = Config(fp)
     for source_id, descriptor in config.items():
         self.assertTrue(is_valid(source_id, descriptor))
Exemple #4
0
 def test_valid(self):
     fp = StringIO(VALID)
     config = Config(fp)
     for source_id, descriptor in config.items():
         self.assertTrue(is_valid(source_id, descriptor))