Ejemplo n.º 1
0
 def test_flawed_4(self):
     f = open(
         os.path.join(os.getcwd(),
                      "tests/service_level_agreements/sla_flawed_4.json"),
         "r")
     try:
         parse_sla_json(f.read())
     except:
         return
     self.fail("Exception expected")
Ejemplo n.º 2
0
 def test_correct_1(self):
     f = open(
         os.path.join(os.getcwd(),
                      "tests/service_level_agreements/sla_correct_1.json"),
         "r")
     self.assertTrue(parse_sla_json(f.read()))