Esempio n. 1
0
 def test_wrong_type_harmonization(self):
     """ Test wrong type in harmonization """
     result = upgrades.harmonization({}, {}, WRONG_TYPE, False)
     self.assertTrue(result[0])
     self.assertEqual(HARM, result[3])
Esempio n. 2
0
 def test_v211_harmonization(self):
     """ Test v211_harmonization """
     result = upgrades.harmonization({}, {}, V210_HARM, False)
     self.assertTrue(result[0])
     self.assertEqual(HARM, result[3])
Esempio n. 3
0
 def test_missing_report_harmonization(self):
     """ Test missing report in harmonization """
     result = upgrades.harmonization({}, {}, MISSING_REPORT, False)
     self.assertTrue(result[0])
     self.assertEqual(HARM, result[3])
Esempio n. 4
0
 def test_wrong_regex_harmonization(self):
     """ Test wrong regex in harmonization """
     result = upgrades.harmonization({}, {}, WRONG_REGEX, False)
     self.assertTrue(result[0])
     self.assertEqual(HARM, result[3])