Example #1
0
 def test_case5(self):
     g = reader.Read()
     with self.assertRaises(ValueError):
         g.readFile('case5.json', 'stoleCash')  #Incorrect JSON input
Example #2
0
 def test_case4(self):
     f = reader.Read()
     with self.assertRaises(ValueError):
         f.readFile('case4.json', 'stoleCash')  #improper argument
Example #3
0
 def test_case2(self):
     d = reader.Read()
     self.assertTrue(d.readFile('case2.json',
                                'wikiReliable'))  #wikipedia is reliable
Example #4
0
 def test_case3(self):
     e = reader.Read()
     self.assertTrue(e.readFile('case3.json',
                                'stoleCash'))  #culprit stole cash
Example #5
0
 def test_case1(self):
     c = reader.Read()
     self.assertFalse(c.readFile('case1.json',
                                 'fraud'))  #lawyer is not a fraud lawyer