Beispiel #1
0
 def test_afw_nonuniversality_check_side_effects(self):
     """ Tests that the function doesn't make any side effect on the 
     input"""
     before = copy.deepcopy(self.afw_nonuniversality_check_test_1)
     AFW.afw_nonuniversality_check(self.afw_nonuniversality_check_test_1)
     self.assertDictEqual(before, self.afw_nonuniversality_check_test_1)
Beispiel #2
0
 def test_afw_nonuniversality_check_wrong_input(self):
     """ Tests the nonuniversality of an input different from a dict 
     object. [EXPECTED FAILURE] """
     self.assertFalse(AFW.afw_nonuniversality_check(0))
Beispiel #3
0
 def test_afw_nonuniversality_check_wrong_dict(self):
     """ Tests the nonuniversality of an input dict different from a dict 
     representing a afw. [EXPECTED FAILURE] """
     self.assertFalse(AFW.afw_nonuniversality_check({}))
Beispiel #4
0
 def test_afw_nonuniversality_check_empty(self):
     """ Tests the nonuniversality of an empty afw"""
     self.assertFalse(AFW.afw_nonuniversality_check(
         self.afw_nonuniversality_check_test_empty))
Beispiel #5
0
 def test_afw_nonuniversality_check_false(self):
     """ Tests a correct afw nonuniversality check, where the afw is 
     empty """
     self.assertFalse(AFW.afw_nonuniversality_check(
         self.afw_nonuniversality_check_test_2))
Beispiel #6
0
 def test_afw_nonuniversality_check(self):
     """ Tests a correct afw nonuniversality check """
     self.assertTrue(AFW.afw_nonuniversality_check(
         self.afw_nonuniversality_check_test_1))