Exemplo n.º 1
0
 def test_afw_nonemptiness_check_side_effects(self):
     """ Tests that the function doesn't make any side effect on the 
     input"""
     before = copy.deepcopy(self.afw_nonemptiness_check_test_1)
     AFW.afw_nonemptiness_check(self.afw_nonemptiness_check_test_1)
     self.assertDictEqual(before, self.afw_nonemptiness_check_test_1)
Exemplo n.º 2
0
 def test_afw_nonemptiness_check_wrong_input(self):
     """ Tests the nonemptines of an input different from a dict object. 
     [EXPECTED FAILURE] """
     self.assertFalse(AFW.afw_nonemptiness_check(0))
Exemplo n.º 3
0
 def test_afw_nonemptiness_check_wrong_dict(self):
     """ Tests the nonemptiness of an input dict different from a dict 
     representing a afw. [EXPECTED FAILURE] """
     self.assertFalse(AFW.afw_nonemptiness_check({}))
Exemplo n.º 4
0
 def test_afw_nonemptiness_check_empty(self):
     """ Tests the nonemptiness of an empty afw"""
     self.assertFalse(
         AFW.afw_nonemptiness_check(self.afw_nonemptiness_check_test_empty))
Exemplo n.º 5
0
 def test_afw_nonemptiness_check_false(self):
     """ Tests a correct afw nonemptiness check, where the afw is empty """
     self.assertFalse(
         AFW.afw_nonemptiness_check(self.afw_nonemptiness_check_test_2))
Exemplo n.º 6
0
 def test_afw_nonemptiness_check(self):
     """ Tests a correct afw nonemptiness check """
     self.assertTrue(
         AFW.afw_nonemptiness_check(self.afw_nonemptiness_check_test_1))